Fix Error

This commit is contained in:
Daniel Odendahl Jr
2017-04-26 17:31:15 +00:00
parent 291aaa7f08
commit aeeb2d0924
45 changed files with 55 additions and 55 deletions
+2 -2
View File
@@ -23,11 +23,11 @@ module.exports = class LockdownCommand extends Command {
}
hasPermission(msg) {
return msg.member.permissions.has('ADMINISTRATOR');
return msg.member.hasPermission('ADMINISTRATOR');
}
async run(message, args) {
if (!message.channel.permissionsFor(this.client.user).permissions.has('ADMINISTRATOR'))
if (!message.channel.permissionsFor(this.client.user).hasPermission('ADMINISTRATOR'))
return message.say('This Command requires the `Administrator` Permission.');
const { type } = args;
if (type === 'start') {