From 58449d85dd6d5e69ab7640983253ef22da0b1bdc Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Tue, 20 Mar 2018 22:14:18 +0000 Subject: [PATCH] Fix --- commands/util/blacklist.js | 2 +- commands/util/whitelist.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/util/blacklist.js b/commands/util/blacklist.js index 8e006777..5bf966be 100644 --- a/commands/util/blacklist.js +++ b/commands/util/blacklist.js @@ -20,7 +20,7 @@ module.exports = class BlacklistCommand extends Command { } run(msg, { user }) { - if (this.client.isOwner(msg.author)) return msg.reply('The bot owner cannot be blacklisted.'); + if (this.client.isOwner(user)) return msg.reply('The bot owner cannot be blacklisted.'); if (user.bot) return msg.reply('Bots cannot be blacklisted.'); const blacklist = this.client.provider.get('global', 'blacklist', []); if (blacklist.includes(user.id)) return msg.reply(`${user.tag} is already blacklisted!`); diff --git a/commands/util/whitelist.js b/commands/util/whitelist.js index 157e0fac..0714f590 100644 --- a/commands/util/whitelist.js +++ b/commands/util/whitelist.js @@ -20,7 +20,7 @@ module.exports = class WhitelistCommand extends Command { } run(msg, { user }) { - if (this.client.isOwner(msg.author)) return msg.reply('The bot owner cannot be blacklisted.'); + if (this.client.isOwner(user)) return msg.reply('The bot owner cannot be blacklisted.'); if (user.bot) return msg.reply('Bots cannot be blacklisted.'); const blacklist = this.client.provider.get('global', 'blacklist', []); if (!blacklist.includes(user.id)) return msg.reply(`${user.tag} is not blacklisted!`);