tippfehlr
DIAdiscord.js - Imagine an app
•Created by tippfehlr on 3/9/2024 in #djs-questions
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?
5 replies