$isMentionable
Returns `true` if the role is mentionable. Otherwise, the function returns `false`.

FUNCTION USAGE

  • $isMentionable[roleID]
  • $isMentionable[roleID;guildID]

Properties:

  • roleID - The role ID of the role being checked for being mentionable.
  • guildID - The guild ID that the specified role is in.

Example 1: Manually entering a specific role to check

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

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

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