This commit is contained in:
Dragon Fire
2021-02-14 10:03:18 -05:00
parent bfd9f6e763
commit 5160852c2a
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -149,7 +149,8 @@ client.on('guildCreate', async guild => {
if (client.blacklist.guild.includes(guild.id) || client.blacklist.user.includes(guild.ownerID)) {
try {
await guild.leave();
} finally {
return;
} catch {
return;
}
}
+1 -1
View File
@@ -29,7 +29,7 @@ module.exports = class BlacklistCommand extends Command {
});
}
run(msg, { type, target }) {
async 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();