From 3ed2491b4d4dcdca8c7916fc3509ed8072c4bfe3 Mon Sep 17 00:00:00 2001 From: GramingFoxTeam Date: Sun, 13 Aug 2023 18:57:29 +0300 Subject: [PATCH] fix(bot-discord): dum --- apps/bot-discord/src/msgCommands/exile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/bot-discord/src/msgCommands/exile.js b/apps/bot-discord/src/msgCommands/exile.js index dda1b04..4954b6d 100644 --- a/apps/bot-discord/src/msgCommands/exile.js +++ b/apps/bot-discord/src/msgCommands/exile.js @@ -5,7 +5,7 @@ import muteMember from '../utils/muteMember.js'; export default { name: 'exile', async execute(msg, args, config) { - if (!checkForPerms(config, message.member)) return msg.reply('You don\'t have the permission to do this.'); + if (!checkForPerms(config, msg.member)) return msg.reply('You don\'t have the permission to do this.'); if (!msg.reference) return msg.reply('You did not reply to anyone!'); const referencedMsg = await msg.channel.messages.fetch(msg.reference.messageId);