Create role
create_roleCreate a Discord role in a guild by specifying name, permissions as names, color, and optional settings. Supports automated server provisioning.
Instructions
Create a role in a guild. Permissions are given as permission names (e.g. VIEW_CHANNEL, SEND_MESSAGES), never raw bitfields.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| color | No | ||
| hoist | No | ||
| guild_id | Yes | ||
| position | No | Desired position; higher = higher in the role list | |
| mentionable | No | ||
| permissions | No | Permission names, e.g. ["VIEW_CHANNEL", "SEND_MESSAGES"] |