This commit is contained in:
Daniel Odendahl Jr
2017-04-26 17:41:05 +00:00
parent 29005a8945
commit b4cc3dab20
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ module.exports = class WarnCommand extends Command {
}
hasPermission(msg) {
return msg.member.has('MANAGE_MESSAGES');
return msg.member.permissions.has('MANAGE_MESSAGES');
}
async run(message, args) {