Fix Mod Commands

This commit is contained in:
Daniel Odendahl Jr
2017-06-25 16:18:47 +00:00
parent db7f7ab426
commit 9257c43a1f
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ module.exports = class WarnCommand extends Command {
const topic = c.topic || '';
if (topic.includes('<modlog>')) return true;
else return false;
}).first() || member.guild.channels.find('name', 'mod-log');
}).first() || msg.guild.channels.find('name', 'mod-log');
const { member, reason } = args;
await msg.say(`Are you sure you want to warn ${member.user.tag} (${member.id})?`);
const msgs = await msg.channel.awaitMessages((res) => res.author.id === msg.author.id, {