Fix for Mod Commands?

This commit is contained in:
Daniel Odendahl Jr
2017-03-24 02:35:33 +00:00
parent 4ef27d9e53
commit 75425d6cda
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -15,6 +15,7 @@ module.exports = class BanCommand extends commando.Command {
});
}
hasPermission(msg) {
if (msg.channel.type === 'dm') return;
return msg.member.hasPermission('BAN_MEMBERS');
}
+1
View File
@@ -12,6 +12,7 @@ module.exports = class KickCommand extends commando.Command {
});
}
hasPermission(msg) {
if (msg.channel.type === 'dm') return;
return msg.member.hasPermission('KICK_MEMBERS');
}
+1
View File
@@ -12,6 +12,7 @@ module.exports = class WarnCommand extends commando.Command {
});
}
hasPermission(msg) {
if (msg.channel.type === 'dm') return;
return msg.member.hasPermission('MANAGE_MESSAGES');
}