roles_modify
Update a Discord role's name, color, permissions, icon, or flags by passing only the properties you want to change.
Instructions
Purpose: Update a role's properties. Pass only fields you want to change.
When to use:
Rename, recolor, change permissions, toggle mentionability/hoist, set role icon.
When NOT to use:
Reorder roles → use
roles_modify_positions.Delete → use
roles_delete.
permissions is a base-10 STRING (Discord permission bitfield).
Returns: {id, name, color, position, permissions, mentionable, hoist}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | No | ||
| name | No | ||
| color | No | ||
| hoist | No | ||
| role_id | Yes | Role to modify | |
| guild_id | Yes | Guild containing the role | |
| mentionable | No | ||
| permissions | No | Permission bitfield as base-10 string | |
| audit_reason | No | Reason recorded in audit log (X-Audit-Log-Reason header) | |
| unicode_emoji | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||