$isMentioned
$isMentioned
checks if the query contains a mention.
Usage
$isMentioned[query]
Parameters
Field | Type | Description | Required |
---|---|---|---|
query | string | Where 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:
1client.command({2 name: "isMentioned",3 code: `4 $isMentioned[<@$authorID>]5 `6});