mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 08:12:04 +02:00
Fix
This commit is contained in:
@@ -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!`);
|
||||
|
||||
@@ -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!`);
|
||||
|
||||
Reference in New Issue
Block a user