Fix ref to bannedServers array
All checks were successful
NodBot PE Dockerization / build (push) Successful in 19s
All checks were successful
NodBot PE Dockerization / build (push) Successful in 19s
This commit is contained in:
parent
4fcb45823d
commit
91982da762
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user