This commit is contained in:
Daniel Odendahl Jr
2018-03-20 22:14:18 +00:00
parent 43e62c289a
commit 58449d85dd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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!`);
+1 -1
View File
@@ -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!`);