Skip to content

$setRolePosition

$setRolePosition will set a roles’ position.

Usage

$setRolePosition[roleID;position;guildID?]

Parameters

FieldTypeDescriptionRequired
roleIDnumberThe ID of the role to modify.true
positionnumberThe new position of the role. (1 being the very bottom)true
guildID?numberThe 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):

1
client.command({
2
name: "setRolePosition",
3
code: `
4
$setRolePosition[$randomRoleID;1;$guildID]`
5
});