mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
Prettified Code!
This commit is contained in:
@@ -16,11 +16,7 @@ export async function pruneMembers(guildId: bigint, options: BeginGuildPrune) {
|
||||
|
||||
await requireBotGuildPermissions(guildId, ["KICK_MEMBERS"]);
|
||||
|
||||
const result = await rest.runMethod<{ pruned: number }>(
|
||||
"post",
|
||||
endpoints.GUILD_PRUNE(guildId),
|
||||
snakelize(options)
|
||||
);
|
||||
const result = await rest.runMethod<{ pruned: number }>("post", endpoints.GUILD_PRUNE(guildId), snakelize(options));
|
||||
|
||||
return result.pruned;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user