Edit role
edit_roleModify Discord role properties like name, color, permissions, and display options. Updating only specified fields preserves others.
Instructions
Edit an existing role's name, color, permissions, or display options. Only provided fields are changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New role name. | |
| role | Yes | Role to edit (name or id). | |
| color | No | New hex color, e.g. "#5865F2". Pass "none" to clear. | |
| hoist | No | Display members with this role separately in the sidebar. | |
| reason | No | Reason recorded in the audit log. | |
| server | No | Server (guild) name or id. Optional when the bot is in a single server or DISCORD_GUILD_ID is set. | |
| mentionable | No | Allow anyone to @mention this role. | |
| permissions | No | Replace the role’s permissions with these flag names, e.g. ["ManageChannels","KickMembers"]. Replaces the full set. |