This commit is contained in:
Dragon Fire
2021-02-14 20:24:31 -05:00
parent 5f46f14c1b
commit 31c4aa2b58
+2 -2
View File
@@ -97,7 +97,7 @@ client.on('ready', async () => {
// Make sure bot is not in any blacklisted guilds // Make sure bot is not in any blacklisted guilds
for (const id of client.blacklist.guild) { for (const id of client.blacklist.guild) {
try { try {
const guild = await this.client.guilds.fetch(id, false); const guild = await client.guilds.fetch(id, false);
await guild.leave(); await guild.leave();
client.logger.info(`[BLACKLIST] Left blacklisted guild ${id}.`); client.logger.info(`[BLACKLIST] Left blacklisted guild ${id}.`);
} catch { } catch {
@@ -107,7 +107,7 @@ client.on('ready', async () => {
// Make sure bot is not in any guilds owned by a blacklisted user // Make sure bot is not in any guilds owned by a blacklisted user
let guildsLeft = 0; let guildsLeft = 0;
for (const guild of this.client.guilds.cache.values()) { for (const guild of client.guilds.cache.values()) {
if (client.blacklist.user.includes(guild.ownerID)) { if (client.blacklist.user.includes(guild.ownerID)) {
try { try {
await guild.leave(); await guild.leave();