Skip to content

Commit

Permalink
(#73) add check for BAN_MEMBERS
Browse files Browse the repository at this point in the history
Fixes #73
  • Loading branch information
mkevenaar committed Jun 14, 2022
1 parent 4339315 commit 2a1b15a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/commands/general/guildstats.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 2a1b15a

Please sign in to comment.