members_bulk_add_role
Assign one Discord role to 1-100 known guild members in a single batch and return succeeded/failed user IDs; retries are safe because writes are idempotent.
Instructions
Purpose: Add one role to 1-100 explicitly identified guild members.
When to use:
Assign the same existing role to a bounded list of known members.
When NOT to use:
Assigning a role to one member -> use
members_add_role.Discovering or filtering members -> use
members_listfirst.
Returns: {role_id, succeeded_user_ids, failed_user_ids, succeeded_count, failed_count}. Each successful PUT includes an idempotent no-op when the member already has the role.
An unknown member is reported as a per-member failure. Permission, rate-limit, upstream, and other infrastructure errors stop the batch; prior successful writes remain, and retrying the same request is safe because each PUT is idempotent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role_id | Yes | Role to add | |
| guild_id | Yes | Guild containing the members | |
| user_ids | Yes | Unique member IDs to grant the role to (1-100) | |
| audit_reason | No | Reason recorded in audit log (X-Audit-Log-Reason header) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||