$createRole

Creates a new role.

Syntax

$createRole[Role name;Color hex;Hoist?;Mentionable?]

Discord allows users to create up to 250 roles per server.

Parameters

  • Role name (Type: String || Flag: Required): The name to give the new role.

Role names can have a maximum of 100 characters.

  • Color hex (Type: Color || Flag: Required): The color hex of the new role.
  • Hoist? (Type: Bool || Flag: Vacantable): Whether the role should be displayed separately (hoisted) or not. no means the role won’t be hoisted, yes means it will.
    example
  • Mentionable? (Type: Bool || Flag: Vacantable): Whether the role should be mentionable by everyone. no means the role won’t be mentionable, yes means it will.
    example

Example

$nomention
$createRole[Cool Role;#FFFF00;yes;no]
New role created!
!example New role created!

example

You can use $roleID[] to return the role ID.