$setRolePosition
Sets a new position for a role in the guild. Roles are mapped from the bottom of the role list. The @everyone role is defined as `0`.

FUNCTION USAGE

  • $setRolePosition[guildID;roleID]
  • $setRolePosition[guildID;roleID;position]

Properties:

roleID - The ID of the role. guildID - The ID of the guild where the role is located. Empty field defines current guild. position - The new role position.

Example: Sets the role to the 5th position in the role list above the @everyone role.

1
bot.Command({
2
name: "channeltopic",
3
code: `
4
$setRolePosition[9364592864598343;5]
5
`
6
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: