Mass adding of roles
When running a mass adding command, does discord take care of the rate limit, i.e., gives it in batches, or does that have to be done by the bot?
5 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!
- β
Marked as resolved by OPWdym by "Discord take care of the rate limit"?
They enforce it. djs handles rate limits by queing requests.
Also your command just sounds like API spam tbh
Many bots do it, just wondering if they handle the "batches" or is it handled by discord.js
I can tell you from recent experience that trying to add 2 consecutive roles one after the other is hit or miss unless you have a delay between them.
I mean mass adding of one role, e.g., adding the member role to all the guild members
Like dyno, and carl
Alright, thanks