Fix Moderation Commands

This commit is contained in:
Daniel Odendahl Jr
2017-03-24 02:32:57 +00:00
parent 122fcf5de3
commit 4ef27d9e53
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ module.exports = class BanCommand extends commando.Command {
});
}
hasPermission(msg) {
return msg.author.hasPermission('BAN_MEMBERS');
return msg.member.hasPermission('BAN_MEMBERS');
}
async run(message) {
+1 -1
View File
@@ -12,7 +12,7 @@ module.exports = class KickCommand extends commando.Command {
});
}
hasPermission(msg) {
return msg.author.hasPermission('KICK_MEMBERS');
return msg.member.hasPermission('KICK_MEMBERS');
}
async run(message) {
+1 -1
View File
@@ -12,7 +12,7 @@ module.exports = class WarnCommand extends commando.Command {
});
}
hasPermission(msg) {
return msg.author.hasPermission('MANAGE_MESSAGES');
return msg.member.hasPermission('MANAGE_MESSAGES');
}
async run(message) {