mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 08:50:07 +00:00
13 lines
404 B
TypeScript
13 lines
404 B
TypeScript
import { BotWithCache } from "../../deps.ts";
|
|
import { requireBotGuildPermissions } from "../permissions.ts";
|
|
|
|
export default function getPruneCount(bot: BotWithCache) {
|
|
const getPruneCountOld = bot.helpers.getPruneCount;
|
|
|
|
bot.helpers.getPruneCount = function (guildId, options) {
|
|
requireBotGuildPermissions(bot, guildId, ["KICK_MEMBERS"]);
|
|
|
|
return getPruneCountOld(guildId, options);
|
|
};
|
|
}
|