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
d.js toolkit
d.js toolkit3mo ago
- 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!
NyR
NyR3mo ago
I believe you also need to specify the totalShards options
...Tāz
...TāzOP3mo ago
i use the discordjs shardingmanager i want to split my app on various host
d.js docs
d.js docs3mo ago
: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)
...Tāz
...TāzOP3mo ago
so i have to set the shards on the ShardinManager options and also on the client options?
d.js docs
d.js docs3mo ago
:propertysignature: ShardingManagerOptions#totalShards @14.16.1 Number of total shards of all shard managers or "auto"
...Tāz
...TāzOP3mo ago
This works on djs 13? Or I have to upgrade to djs 14?
Want results from more Discord servers?
Add your server