edit_role
Modify a Discord role's name, color, permissions, hoist, mentionable, or position. Permissions are fully replaced with the new set.
Instructions
Edits a role's name, color, permissions, hoist, mentionable, or position. Note: permissions REPLACE the role's existing permission set. Position uses Discord's inverted scale (higher = more powerful); to reorder relative to other roles, reorder_roles is usually clearer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New name for the role | |
| color | No | New color as hex string or integer | |
| hoist | No | Display members with this role separately | |
| roleId | Yes | ID of the role to edit | |
| guildId | No | Guild ID or name. Defaults to the currently selected guild. | |
| position | No | New raw Discord position (higher = more powerful). | |
| mentionable | No | Allow anyone to @mention this role | |
| permissions | No | Array of Discord permission names in SCREAMING_SNAKE_CASE (e.g. VIEW_CHANNEL, SEND_MESSAGES, MANAGE_ROLES, KICK_MEMBERS, ADMINISTRATOR, USE_VAD, SEND_TTS_MESSAGES). Unknown names are rejected rather than silently ignored. Replaces the role's existing permissions. |