$isHoisted
Returns `true` if the role is hoisted. Otherwise, the function returns `false`.

FUNCTION USAGE

  • $isHoisted[roleID]
  • $isHoisted[roleID;guildID]

Properties:

roleID - The role ID of the role being check for being hoisted. guildID - The ID of the guild where the role is located. Defaults to current guild.

Example 1: Manually entering a specific role to check

1
bot.Command({
2
name: "check",
3
code: `
4
$isHoisted[659748656362496523]
5
`
6
})
Copied!

Example 2: Using $findRole to get a role to check

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