mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-10 10:57:08 +02:00
Fix
This commit is contained in:
@@ -30,6 +30,7 @@ module.exports = class BlacklistCommand extends Command {
|
||||
}
|
||||
|
||||
run(msg, { type, target }) {
|
||||
if (this.client.blacklist[type].includes(target)) return msg.say(`🔨 \`${target}\` is already blacklisted.`);
|
||||
this.client.blacklist[type].push(target);
|
||||
this.client.exportBlacklist();
|
||||
return msg.say(`🔨 Blacklisted ${type} \`${target}\`.`);
|
||||
|
||||
Reference in New Issue
Block a user