Skip to content

$mentionType

$mentionType will return the type of the mention.

Usage

$mentionType[content]

Parameters

FieldTypeDescriptionRequired
contentstringThe mention whose mention type will be returned.true

Mention Types

TypeDescription
everyone@everyone and @here mentions.
usersAll user mentions.
rolesAll role mentions.
allEverything listed above.

Example(s)

This will return users as you’re an user:

1
client.command({
2
name: "mentionType",
3
code: `
4
$mentionType[<@$authorID>]
5
`
6
});