Fix Mod Commands

This commit is contained in:
Daniel Odendahl Jr
2017-06-04 21:38:04 +00:00
parent 217235d7df
commit 3cad2c53c9
5 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ module.exports = class WarnCommand extends Command {
await msg.say('Failed to Send DM.');
}
await msg.say(`Successfully warned ${member.user.tag}.`);
if (!modlogs || !modlogs.permissionsFor(this.client.user.has('SEND_MESSAGES'))) {
if (!modlogs || !modlogs.permissionsFor(this.client.user).has('SEND_MESSAGES')) {
return msg.say('Could not log the warn to the mod logs.');
} else if (!modlogs.permissionsFor(this.client.user).has('EMBED_LINKS')) {
return modlogs.send(stripIndents`