Create Discord Role
discord_create_roleCreate a new role in a Discord server with customizable name, color, permissions, and settings like mentionable and hoist.
Instructions
Create a new role in a Discord server.
Args:
guild_id (string): Discord server/guild ID
name (string): Role name
color (number, optional): Role color as decimal integer (e.g., 16711680 for red)
mentionable (boolean): Whether the role can be mentioned (default: false)
hoist (boolean): Whether to display role members separately (default: false)
Returns: The created role's details
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": {
"guild_id": "<guild_id>",
"name": "<name>"
},
"name": "discord_create_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Role name | |
| color | No | Role color as decimal (e.g., 16711680 for red) | |
| hoist | No | Whether to display role members separately | |
| guild_id | Yes | Discord server/guild ID (snowflake) | |
| mentionable | No | Whether the role can be mentioned | |
| permissions | No | Array of permission names (e.g., ['SendMessages', 'ManageChannels']) |