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
d.js toolkit
d.js toolkitβ€’16mo 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! - βœ… Marked as resolved by OP
πŸŒΊπŸ‡«πŸ‡· Shigu :3 🌺
Wdym 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
adam
adamOPβ€’16mo ago
Many bots do it, just wondering if they handle the "batches" or is it handled by discord.js
DaveY
DaveYβ€’16mo ago
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.
adam
adamOPβ€’16mo ago
I mean mass adding of one role, e.g., adding the member role to all the guild members Like dyno, and carl Alright, thanks

Did you find this page helpful?