Search
Get Started
d-Iβ
discord.js - Imagine β
β’
3y ago
adam π¦π±
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
?
discord.js - Imagine β
Join
Support server for discord.js, a Node.js module to interact with Discord's apps API.
58,353
Members
View on Discord
Was this page helpful?
Yes
No
D
d.js toolkit
β’
10/27/23, 7:58 PM
What
's your exact discord
.js
npm list discord.js
npm list discord.js
and node
node -v
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 πΊ
β’
10/27/23, 7:59 PM
Wdym by
"Discord take care of the rate limit
"
?
They enforce it
. djs handles rate limits by queing requests
.
οΏ½
πΊπ«π· Shigu :3 πΊ
β’
10/27/23, 7:59 PM
Also your command just sounds like API spam tbh
οΏ½
πΊπ«π· Shigu :3 πΊ
Wdym by "Discord take care of the rate limit"? They enforce it. djs handles rat...
A
adam π¦π±
OP
β’
10/27/23, 8:30 PM
Many bots do it
, just wondering if they handle the
"batches
" or is it handled by discord
.js
D
DaveY
β’
10/28/23, 3:18 AM
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
.
D
DaveY
I can tell you from recent experience that trying to add 2 consecutive roles one...
A
adam π¦π±
OP
β’
10/28/23, 7:42 AM
I mean mass adding of one role
, e
.g
.
, adding the member role to all the guild members
A
adam π¦π±
OP
β’
10/28/23, 7:42 AM
Like dyno
, and carl
A
adam π¦π±
OP
β’
10/28/23, 10:28 AM
Alright
, thanks