Sharding help
Hey so I need some help with sharding, my bot is now at 1500 servers so I assume thats why its spawning 2 shards, however its messing with my current code that listens on ports, both shards listen to the same port, and the result is an error that says the port is already in use
Furthermore, when removing ports for now, it returns errors when I'm replying to slash commands, not sure whats up as this has never happened until it spawned 2 shards
Im sort of new to sharding, so this is a little hard to understand right now, I've read the documentation but I cant seem to wrap my head around what I need to change, and how to change it
2 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!It may be because Im using shards: auto in the client options, but if thats the issue what should i change it to