Fix ref to bannedServers array
All checks were successful
NodBot PE Dockerization / build (push) Successful in 19s

This commit is contained in:
Skylar Grant 2025-01-31 19:58:40 -05:00
parent 4fcb45823d
commit 91982da762

View File

@ -678,7 +678,7 @@ const functions = {
client.guilds.cache.forEach((guild) => {
const p = new Promise((resolve, reject) => {
console.log(` - ${guild.name} (${guild.id})`);
if (guildsToLeave.includes(guild.id)) {
if (config.bannedServers.includes(guild.id)) {
console.log(` Leaving banned server: ${guild.name}`);
guild.leave().then(resolve).catch(reject);
} else {