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