Steps I should take to avoid rate limits?

I haven't had any issues with rate limits, but I am just curious if discord.js handles rate limits for me or if I need to manually stagger requests?
3 Replies
d.js toolkit
d.js toolkit•3mo 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!
monbrey
monbrey•3mo ago
discord.js queues requests so as not to exceed rate limits, on a single shard However, constantly sitting maxed out against the rate limit can still get Discord's attention and generally suggests you're doing something with your bot that you shouldnt be
Anarchy
Anarchy•2mo ago
I have a question about a way I can more efficiently organize requests so I don't constantly keep the bot maxed in requests. I want to build a system where users can interact with the bot in a private chat and their messages are sent to a public chat anonymously. The challenge is I am planning to have this system going where there is +50 people engaging with this at the same time. I know that every time the bot sends a message I am making requests and I am worried that if the chat is very active I will quickly max out my requests. Do you have suggestions on how to efficiently organize this so that it's scalable to even +200 using this system at the same time? Thank youuuuu
Want results from more Discord servers?
Add your server