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
@@ -37,7 +37,7 @@ module.exports = class BanCommand 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;
if (!member.bannable) return msg.say('This member is not bannable. Perhaps they have a higher role than me?');
await msg.say(`Are you sure you want to ban ${member.user.tag} (${member.id})?`);
+1 -1
View File
@@ -37,7 +37,7 @@ module.exports = class KickCommand 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;
if (!member.kickable) return msg.say('This member is not kickable. Perhaps they have a higher role than me?');
await msg.say(`Are you sure you want to kick ${member.user.tag} (${member.id})?`);
+1 -1
View File
@@ -37,7 +37,7 @@ module.exports = class SoftbanCommand 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;
if (!member.bannable) return msg.say('This member is not bannable. Perhaps they have a higher role than me?');
await msg.say(`Are you sure you want to softban ${member.user.tag} (${member.id})?`);
+1 -1
View File
@@ -37,7 +37,7 @@ module.exports = class UnbanCommand 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 { id, reason } = args;
const bans = await msg.guild.fetchBans();
if (!bans.has(id)) return msg.say('This ID is not in the Guild Banlist.');
+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, {