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
+3 -3
View File
@@ -28,16 +28,16 @@ module.exports = class KickCommand extends Command {
}
hasPermission(msg) {
return msg.member.permissions.has('KICK_MEMBERS');
return msg.member.hasPermission('KICK_MEMBERS');
}
async run(message, args) {
if (!message.channel.permissionsFor(this.client.user).permissions.has('KICK_MEMBERS'))
if (!message.channel.permissionsFor(this.client.user).hasPermission('KICK_MEMBERS'))
return message.say('This Command requires the `Kick Members` Permission.');
const modlogs = message.guild.channels.find('name', 'mod_logs');
if (!modlogs)
return message.say('This Command requires a channel named `mod_logs`.');
if (!modlogs.permissionsFor(this.client.user).permissions.has('EMBED_LINKS'))
if (!modlogs.permissionsFor(this.client.user).hasPermission('EMBED_LINKS'))
return message.say('This Command requires the `Embed Links` Permission.');
const { member, reason } = args;
if (!member.kickable)