#fetchRecommendedShardCount
10 messages · Page 1 of 1 (latest)
- What's your exact discord.js
npm list discord.jsand nodenode -vversion? - Not a discord.js issue? Check out #1081585952654360687.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
✅Marked as resolved by staff
The former expression is just Discord's way of assigning guilds to shards
Multiple of just ensures that the number of shards is divisible by that multiple while being greater or equal to the actual recommended shard count
Like if Discord says you should have 12 shards, but you want it to be a multiple of 5, the expression would round up to 15 shards
I'm aware of the first two statements; when might multipleOf be of use if not the shard number given by Discord? Also, if additional shards are spawned wouldn't it cost the user more resources than what would actually be in use?
As for guildsPerShard I guess that 1000 was the per shard limit back then
- multipleOf is needed for big bot sharding where you can only have the shardCount be a multiple of the concurrency identify limit
- and no, 1000 is the amount of guilds per shard that discord recommends to have when starting up the bot so it has enough room for guilds your bot joins while running
- That's nice
- "concurrency identify limit" means?
max_concurrencyfield in the session start limit?
Yes