roles_modify_positions
Reorder multiple Discord roles in a single transaction. Specify role IDs and new positions; Discord auto-renumbers others and returns the updated role list.
Instructions
Purpose: Bulk-reorder guild roles via PATCH /guilds/{guild.id}/roles.
When to use:
Move several roles in one transaction (e.g. swap two adjacent roles).
Body: array of {id, position?}. Discord renumbers other roles automatically to make room.
Returns: {roles:[{id, name, position}], count} - full role list after the change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guild_id | Yes | Guild containing the roles | |
| positions | Yes | Roles whose position changes (other roles are auto-renumbered) | |
| audit_reason | No | Reason recorded in audit log (X-Audit-Log-Reason header) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||