Sharding support

Two questions: Is djs internal sharding good as the sharding manager or not? What are the differences? Is it possible to see how many shards are spawned by djs on the "shards: 'auto'" option?
3 Replies
d.js toolkit
d.js toolkit14mo ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
d.js docs
d.js docs14mo ago
property WebSocketManager#shards A collection of all shards this manager handles
Mac
Mac14mo ago
I heard that like discord doesn't allow your bot to login after a certain amount of servers? So I guess using internal sharding is less performance worthy as opposed to sharding manager? Also does the internal sharding immitate the same style as sharding manager but just workout the "many processes" since I'd assume the each process in the sharding manager would connect to the ws so in internal sharding's case, there's only 1 process which has multiple connections Gotcha, for smaller bots like 2k servers, using internal sharding would be better then wouldn't it? wait so internal sharding is only good for 1 shard? using the sharding manager, I remember it created 1.1k shards, one was 1k guilds and the other was like 920 smth I see, okay tysm