mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -58,7 +58,7 @@ client.on('ready', async () => {
|
||||
}, 60000);
|
||||
if (allowedGuilds) {
|
||||
for (const guild of client.guilds.values()) {
|
||||
if (allowedGuilds.includes(guild.id)) return;
|
||||
if (allowedGuilds.includes(guild.id)) continue;
|
||||
try {
|
||||
await guild.leave();
|
||||
console.log(`[GUILD] Left non-allowed guild ${guild.name}. (${guild.id})`);
|
||||
|
||||
Reference in New Issue
Block a user