discord_create_role
Create a Discord server role with a name, optional color, hoist, mentionable, permissions, and audit-log reason; returns the new role ID. Requires Manage Roles.
Instructions
Create a role. Needs Manage Roles. New roles appear at the bottom of the hierarchy.
Returns: Confirmation with the role ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| color | No | Hex color like '#5865F2'. | |
| hoist | No | Show members with this role separately in the sidebar. | |
| reason | No | Reason recorded in the server's audit log. | |
| guild_id | No | Server (guild) ID. Omit to use DISCORD_GUILD_ID from .env. | |
| mentionable | No | Let anyone @mention the role. | |
| permissions | No | Permission bitfield as a decimal string, e.g. '8' for Administrator. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |