fix(bot-discord): dum

This commit is contained in:
GramingFoxTeam
2023-08-13 18:57:29 +03:00
parent 4cadf4a8f1
commit 3ed2491b4d

View File

@@ -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);