Skip to content

Commit

Permalink
Fix guild members not arriving in time on multiple instances.
Browse files Browse the repository at this point in the history
  • Loading branch information
IceeMC committed Mar 2, 2022
1 parent 9d1f918 commit e7d94e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Util/Services/discord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ bot.on("ready", async () => {
if (!guilds.main.members.cache.has(bot._id)) botsToFetch.push(bot._id)
})
guilds.main.members.fetch({user: botsToFetch})
.then(x => console.log(`Retrieved ${}`))
.then(x => console.log(`Retrieved ${x.size} members!`))
.catch(() => null); // It is most likely that DEL has another instance running to handle this, so catch the error and ignore.
});
console.timeEnd("Bot cache");
Expand Down

0 comments on commit e7d94e5

Please sign in to comment.