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