mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 16:19:12 +02:00
Fix
This commit is contained in:
@@ -24,7 +24,7 @@ module.exports = class BlacklistCommand extends Command {
|
|||||||
if (user.bot) return msg.reply('Bots cannot be blacklisted.');
|
if (user.bot) return msg.reply('Bots cannot be blacklisted.');
|
||||||
const blacklist = this.client.provider.get('global', 'blacklist', []);
|
const blacklist = this.client.provider.get('global', 'blacklist', []);
|
||||||
if (blacklist.includes(user.id)) return msg.reply(`${user.tag} is already blacklisted!`);
|
if (blacklist.includes(user.id)) return msg.reply(`${user.tag} is already blacklisted!`);
|
||||||
blacklist.push(blacklist.id);
|
blacklist.push(user.id);
|
||||||
this.client.provider.set('global', 'blacklist', blacklist);
|
this.client.provider.set('global', 'blacklist', blacklist);
|
||||||
return msg.say(`${user.tag} has been blacklisted.`);
|
return msg.say(`${user.tag} has been blacklisted.`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user