shardList does not work on my app
I have an app with 28 shards, but i want to manage only 10 shards per host, i already set the shardList option but when i start the app, it spawns all the shards.
7 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- 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!I believe you also need to specify the
totalShards
optionsi use the discordjs shardingmanager
i want to split my app on various host
:propertysignature: ClientOptions#shards
@14.16.1
The shard's id to run, or an array of shard ids. If not specified, the client will spawn shardCount shards. If set to auto, it will fetch the recommended amount of shards from Discord and spawn that amount
:propertysignature: ClientOptions#shardCount @14.16.1
The total amount of shards used by all processes of this bot (e.g. recommended shard count, shard count of the ShardingManager)so i have to set the shards on the ShardinManager options and also on the client options?
:propertysignature: ShardingManagerOptions#totalShards
@14.16.1
Number of total shards of all shard managers or "auto"This works on djs 13? Or I have to upgrade to djs 14?