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 role in the specified Discord server.
Inputs
- serverId (required) — ID of the Discord server where the role will be created.
- roleName — Name of the role to create.
Output shape
object
Returned by the Discord API via Roles.create. Contains the role's ID, name, and hex color code assigned by Discord. Does not include the 'color' or 'permissions' parameters declared in the UI properties, as the runtime implementation only consumes 'roleName'.