$createRole

Creates a new role.

Syntax

$createRole[Role name;Color hex;(Display role?;Mentionable?)]

Limit

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.

Limit

Role names can have a maximum of 100 characters.

  • Color hex (Type: Color || Flag: Required): The color hex of the new role. You can also use color integer number.

  • Display role? (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

Tip

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

$nomention
$createRole[Staff;#FFFF00;no;no]
New role created! ID: $roleID[Staff]
!example New role created! ID: 659789148806447134