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