API endpoint for adding/removing a role from multiple members at once #7398
Unanswered
scottbucher
asked this question in
API Feature Requests & Ideas
Replies: 1 comment 3 replies
-
There’s an endpoint for this, but they’ve blocked bots from using it PATCH /guilds/{guild.id}/roles/{role.id}/members |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Large Bots, such as my own (Birthday Bot) often have to give or take a role the same role from a list of users quite often. Typically, this can be handled fine by the existing endpoints, however, as I've noticed with one of my servers (PewDiePie's server with 191k members), at 12am, my bot needs to give the "birthday role" from, on average 38 users, and take the role from another 38 whose birthday was yesterday. This can cause rate limits, and even when handled properly, cause the bot to take a while to complete these actions.
It would be much easier if there was a request where I could pass a role and a list of user ids to give/remove the role to/from.
Beta Was this translation helpful? Give feedback.
All reactions