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