Skip to content

$isMentioned

$isMentioned checks if the query contains a mention.

Usage

$isMentioned[query]

Parameters

FieldTypeDescriptionRequired
querystringWhere you want to check if a user/role/channel was mentioned.true

Example(s)

This will return true as you were mentioned within the message:

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