discord_edit_role
Update a Discord role's name, color, hoist, mentionable status, or permissions; only supplied fields change, and the response lists updated fields.
Instructions
Change a role's name, color, hoist/mentionable flags, or permissions. Only passed fields change.
Returns: Confirmation listing the fields changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| color | No | Hex color like '#5865F2'. | |
| hoist | No | ||
| reason | No | Reason recorded in the server's audit log. | |
| role_id | Yes | ||
| guild_id | No | Server (guild) ID. Omit to use DISCORD_GUILD_ID from .env. | |
| mentionable | No | ||
| permissions | No | Permission bitfield as a decimal string, e.g. '8' for Administrator. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |