Skip to content

$rolePosition

$rolePosition will return the role position of a specific role.

Usage

$rolePosition[roleID;guildID?]

Parameters

FieldTypeDescriptionRequired
roleIDnumberThe role ID.true
guildID?numberThe guild ID.false

Example(s)

This will return the role position of any role you might like, for this example, we’ll use the @everyone role:

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