discord_mod_edit_role
Edit a Discord role's name, color, permissions, position, hoist, or mentionable settings.
Instructions
Edits an existing role in a Discord server.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"guildId": "<guildId>",
"roleId": "<roleId>"
},
"name": "discord_mod_edit_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New name for the role | |
| color | No | New hex color | |
| hoist | No | Whether the role should be displayed separately | |
| roleId | Yes | The ID of the role to edit | |
| guildId | Yes | The ID of the server | |
| position | No | New position in the role hierarchy | |
| mentionable | No | Whether the role can be mentioned | |
| permissions | No | Array of permission flag names |