Skip to content

$userHoistedRole

$userHoistedRole will return the user’s highest role.

Usage

$userHoistedRole[userID?;guildID?;option?]

Parameters

FieldTypeDescriptionRequired
userID?numberThe user ID.false
guildID?numberThe guild ID.false
option?stringHow the role will be returned.
1. id (default)
2. mention
false

Example(s)

This will return the ID of your highest role:

1
client.command({
2
name: "userHoistedRole",
3
code: `$userHoistedRole[$authorID;$guildID;id]`
4
});