$setUserRoles

Overrides all roles of the given user.

Syntax

$setUserRoles[User ID;Role ID;...]

Parameters

  • User ID (Type: Snowflake || Flag: Required): ID of the user to set the role.
  • Role ID (Type: Snowflake || Flag: Required): Roles to be given to the user. Separate roles using ;.

Example

$nomention
$setUserRoles[$authorID;$roleID[Support]]
We've reset all your roles! Now you have "Support" role.

In this example, we will remove all roles and give one role with “Support” name.

!roles Cool
BDFD
Moderator
!example We've reset all your roles! Now you have "Support" role. !roles Support

How $roleID[] and $authorID works?

Code for !roles command:

$nomention
$userRoles[$authorID]

How $userRoles[] works?