From 2a1b15aac7a2571bac44a1761e030fbbae13af1b Mon Sep 17 00:00:00 2001 From: Maurice Kevenaar Date: Tue, 14 Jun 2022 20:17:34 +0200 Subject: [PATCH] (#73) add check for BAN_MEMBERS Fixes #73 --- src/commands/general/guildstats.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/commands/general/guildstats.js b/src/commands/general/guildstats.js index db3cf72d..a61fa65a 100644 --- a/src/commands/general/guildstats.js +++ b/src/commands/general/guildstats.js @@ -5,8 +5,14 @@ import { botPermissions } from '../../tools/botPermissions.js'; import { BotColors } from '../../constants.js'; export const permission = new botPermissions() - .setBotPerms([Permissions.FLAGS.SEND_MESSAGES, Permissions.FLAGS.EMBED_LINKS]) - .setBotMessage("It seems that I don't have permission to send messages or embed links!"); + .setBotPerms([ + Permissions.FLAGS.SEND_MESSAGES, + Permissions.FLAGS.EMBED_LINKS, + Permissions.FLAGS.BAN_MEMBERS, + ]) + .setBotMessage( + "It seems that I don't have permission to send messages, embed links or ban members!\nThese are required for this function to work" + ); export const data = new SlashCommandBuilder() .setName('guildstats')