Discord User icon

Discord User

Complete Discord automation - Messages, Servers, Roles, Members, DMs

Role → Create Role

AI-generated

Summary

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'

Links

Discussion