Functionalities
Other
$lowestRole
Returns the lowest role id of a guild or provided user ID.

FUNCTION USAGE

  • $lowestRole
  • $lowestRole[]
  • $lowestRole[userID]
  • $lowestRole[userID;guildID]

Properties:

[] - Leave brackets empty to return the lowest role of the user who executed the command. No brackets will return the lowest role in the guild. userID - Returns the lowest role of the specific user. guildID - Searches specified guld for the lowest role of the specific user.

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

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

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

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

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

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