This commit is contained in:
Daniel Odendahl Jr
2018-04-04 00:59:02 +00:00
parent 9ee59e7eb1
commit 95a37134ed
+1 -1
View File
@@ -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})`);