Actions44
- Message Actions
- User Profile Actions
- Server Actions
- Channel Actions
- Role Actions
- Member Actions
- Presence Actions
- Invite Actions
Role → Create Role
AI-generatedSummary
Creates a new role in the specified Discord server.
Inputs
- serverId (required) — ID of the server (guild) where the role will be created.
- roleName — Name of the role to create.
- color — Hex color code for the role (default: #000000). This value is ignored for the Create Role operation.
- permissions — Permission bitfield for the role. This value is ignored for the Create Role operation.
Output shape
array
Returns an array of objects, each containing the created role's ID, name, and color (hex).
Examples
Example 1: Create a role named 'Moderator' in server '123456789012345678'
serverId = '123456789012345678', roleName = 'Moderator'