Skip to content

Commit

Permalink
wesh
Browse files Browse the repository at this point in the history
  • Loading branch information
GhomKrosmonaute committed Oct 27, 2023
1 parent 0027abe commit 5906ec3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/listeners/clean.ready.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const listener: app.Listener<"ready"> = {
async run(client) {
// Delete removed users

await client.guilds.fetch()
const realGuilds = await client.guilds.fetch()

const members = (
await Promise.all(
Expand Down Expand Up @@ -52,7 +52,7 @@ const listener: app.Listener<"ready"> = {
let guildCount = 0

for (const guild of guilds) {
if (!client.guilds.cache.has(guild.id)) {
if (!realGuilds.has(guild.id)) {
deleteGuilds[first ? "where" : "orWhere"]("id", guild.id)
guildCount++
first = false
Expand Down

0 comments on commit 5906ec3

Please sign in to comment.