Functionalities
Other
$highestRole
Returns the highest role id of server or provided user ID.

FUNCTION USAGE

  • $highestRole
  • $highestRole[]
  • $highestRole[userID]
  • $highestRole[userID;guildID]

Properties:

[] - Leave brackets empty to return the highest role of the user who executed the command. No brackets will return the highest role in the guild. userID - Returns the highest role of the specific user. guild - Returns the highest role of the specific user in the specific guild.

Example 1: Returns the highest role of the server the command was executed.

1
bot.Command({
2
name: "highest-server-role",
3
code: `
4
$highestRole
5
`
6
})
Copied!

Example 2: Returns the highest role of the user who executed the command.

1
bot.Command({
2
name: "highest-user-role",
3
code: `
4
$highestRole[]
5
`
6
})
Copied!

Example 3: Returns the highest role of the supplied user ID.

1
bot.Command({
2
name: "highest-user-role",
3
code: `
4
$highestRole[5397459387459384533]
5
`
6
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: