discord_edit_role
Update a Discord role's name, color, permissions, hoist status, or mentionable flag. Pass only the fields to change; permissions replace the entire set.
Instructions
Update an existing role's name, color, permissions, hoist, or mentionable flag. Only provided fields change; passing permissions REPLACES the role's full permission set. Requires the Manage Roles permission, and the role must be below the bot's highest role.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guild_id | Yes | Discord server (guild) ID (snowflake). | |
| role_id | Yes | ID (snowflake) of the role to edit. | |
| name | No | New role name (max 100 characters). | |
| color | No | New role color as a hex string, e.g. '#FF5733'. | |
| hoist | No | If true, display members with this role separately in the member list. | |
| mentionable | No | If true, anyone can @mention this role. | |
| permissions | No | Permission flag names. Providing this REPLACES the role's entire permission set. Uses Discord PermissionsBitField flag names. |