Replies: 2 comments 1 reply
-
This sounds like you might have an unavailable Guild on your first shard. So there is a Guild in your |
Beta Was this translation helpful? Give feedback.
-
I understand the fix about counting users. Also, all guild counts are a little higher than the actual number of guilds when there are unavailable guilds. (await client.shard.broadcastEval(c=>c.guilds.cache.size))
.reduce((a,c)=>a+c,0);
// The number of all guilds is 3100, but when some guilds are not available, the value is 3109, etc. |
Beta Was this translation helpful? Give feedback.
-
Which package is this bug report for?
discord.js
Issue description
I am using client.shard.broadcastEval() to get user and server totals for all shards. (from the code below), but the client.shard.broadcastEval() value is unstable at times and is not returning accurate results.
From my research, this bug is more likely to occur the longer it has been since the BOT was launched.
This bug prevents accurate measurement of statistics
My BOT has 3 shards up and running. This was occurring even with two shards.
Code sample
Versions
discord.js 14.14.1
Node.js 18.16.0
Ubuntu Server 22.04.4
Issue priority
High (immediate attention needed)
Which partials do you have configured?
No Partials
Which gateway intents are you subscribing to?
Guilds, GuildMembers, GuildPresences, GuildMessages, MessageContent
I have tested this issue on a development release
No response
Beta Was this translation helpful? Give feedback.
All reactions