$setRolePosition
$setRolePosition
will set a roles’ position.
Usage
$setRolePosition[roleID;position;guildID?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
roleID | number | The ID of the role to modify. | true |
position | number | The new position of the role. (1 being the very bottom) | true |
guildID? | number | The ID of the guild of where the role is located in. | false |
Example(s)
This will change a random role’s position to 1
(the bot’s highest role must be above that role):
1client.command({2 name: "setRolePosition",3 code: `4 $setRolePosition[$randomRoleID;1;$guildID]`5});