when is shards: 'auto' recommended?

from https://discordjs.guide/sharding:
Apart from ShardingManager, discord.js also supports a sharding mode known as Internal sharding. Internal sharding creates multiple websocket connections from the same process, and does not require major code changes. To enable it, simply pass shards: 'auto' as ClientOptions to the Client constructor. However, internal sharding is not ideal for bigger bots due to high memory usage of the single main process and will not be further discussed in this guide.
when is shards: 'auto' recommended?
4 Replies
d.js toolkit
d.js toolkit9mo 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! - Marked as resolved by OP
Jaworek
Jaworek9mo ago
When your bot is not very big
Kinect3000
Kinect30009mo ago
To buy you time to transition to traditional sharding
tippfehlr
tippfehlrOP9mo ago
Thanks!
Want results from more Discord servers?
Add your server