Delay Issue
Hello there,
I got bots in many servers but only in 1 server i face delay issue that need some seconds to execute. Everything, is that cause server is bugged or something false from my side? (I dont use timeouts ect on the bot so the delay is not used anywhere)
6 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!are you sure it's only that one guild? if you're sharding in different machines, couldn't it be that shard?
Yeah it is one guild. It has 40k members but it dont have caches,db or smth
40k members might impact things.
Can you share the code in question that is significantly slower in a larger guild?
https://pastebin.com/QzEx5vN1 This is the code. It has delay on creating channels and move as well
That code does not look like it'll inherently run worse in a large guild.
To check out the rate limit option, you can listen to the rate limited event on your client's rest instance:
https://discordjs.dev/docs/packages/rest/2.4.0/RestEvents:Interface#rateLimited