This commit is contained in:
ITOH
2021-04-24 19:38:38 +02:00
parent 0feb6822d0
commit 03db98cd48
11 changed files with 40 additions and 43 deletions
+2 -2
View File
@@ -19,11 +19,11 @@ export async function pruneMembers(
await requireBotGuildPermissions(guildId, ["KICK_MEMBERS"]);
const result = await rest.runMethod(
const result = await rest.runMethod<{ pruned: number }>(
"post",
endpoints.GUILD_PRUNE(guildId),
camelKeysToSnakeCase(options),
);
return result;
return result.pruned;
}