Skip to content

$mentionedRolesCount

$mentionedRolesCount will return the amount of role mentions within a message.

Usage

$mentionedRolesCount

Example(s)

This will return the amount of role mentions in the given text:

1
client.command({
2
name: "mentionedRolesCount",
3
code: `
4
You have: $mentionedRolesCount role mentions in your message!
5
`
6
});