This commit is contained in:
Dragon Fire
2021-02-13 16:45:00 -05:00
parent 79f8773bf3
commit 242d11b49e
2 changed files with 5 additions and 4 deletions
+1
View File
@@ -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}\`.`);