mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 19:28:17 +00:00
Prettified Code!
This commit is contained in:
@@ -27,7 +27,7 @@ export async function editGuild(guildId: bigint, options: ModifyGuild) {
|
||||
const result = await rest.runMethod<Guild>(
|
||||
"patch",
|
||||
endpoints.GUILDS_BASE(guildId),
|
||||
options,
|
||||
options
|
||||
);
|
||||
|
||||
const cached = await cacheHandlers.get("guilds", guildId);
|
||||
@@ -35,8 +35,7 @@ export async function editGuild(guildId: bigint, options: ModifyGuild) {
|
||||
result,
|
||||
cached?.shardId ||
|
||||
Number(
|
||||
(BigInt(result.id) >> 22n % BigInt(ws.botGatewayData.shards))
|
||||
.toString(),
|
||||
),
|
||||
(BigInt(result.id) >> 22n % BigInt(ws.botGatewayData.shards)).toString()
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user