discord_create_role
Create a new server role with customizable name, color, permissions, hoist, and mentionable settings. Returns the role's name and ID.
Instructions
Create a new role in a server. Requires the Manage Roles permission; the new role is placed below the bot's highest role. Use discord_add_role to then assign it to members. Returns the new role's name and ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guild_id | Yes | Discord server (guild) ID (snowflake). | |
| name | Yes | Name of the new role (max 100 characters). | |
| color | No | Role color as a hex string, e.g. '#FF5733'. | |
| hoist | No | If true, display members with this role separately in the member list. | |
| mentionable | No | If true, anyone can @mention this role. | |
| permissions | No | Server-wide permission flag names to grant, e.g. ['SendMessages','ViewChannel']. Uses Discord PermissionsBitField flag names. |