#Need extra explenation
1 messages · Page 1 of 1 (latest)
Also how could i set statically amount of guilds for one shard? I need that for testing usage
setting it to a static number may not be the best idea but can be useful
by default if you use the @discordeno/bot package the .start() method fetches from discord the ammount of shards that you need* (* = suggested by discord)
but you may want to force it to another value
you can't
oh , okay i didnt know about that , sry
the guild is assigned to a shard based on it's id
and discord does that calculation
you can do it too with the gateway.calculateShardId if you know the total shard number and the guild id
oh okay i thought that it's there because there are some cases where it may make sense
ye i know that , thx for your answers
if discord suggestes 50 shards but you only want to spin up 25 shards, you can set the totalShards to 25 and as long as you don't exceed the max number of guilds for that number of shards then you are fine