Create role
create_roleCreate a new Discord server role with customizable name, color, permissions, and display settings.
Instructions
Create a role with an optional color, permissions, and display options.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Role name. | |
| color | No | Hex color, e.g. "#5865F2". | |
| hoist | No | Display members with this role separately in the sidebar. | |
| server | No | Server (guild) name or id. Optional when the bot is in a single server or DISCORD_GUILD_ID is set. | |
| mentionable | No | Allow anyone to @mention this role. | |
| permissions | No | Permission flag names, e.g. ["ManageChannels","KickMembers"]. |