Keeps track of mentions in a Message.
A regular expression that matches channel mentions like
<#222079895583457280>
. The id
group property is present on the exec
result of this expression.A collection of crossposted channels Order as received from the API, not as they appear in the message content
A regular expression that matches
@everyone
and @here
. The mention
group property is present on the exec
result of this expression.Any members that were mentioned (only in Guilds) Order as received from the API, not as they appear in the message content
Any user mentions that were included in the message content Order as they appear first in the message content
Any roles that were mentioned Order as received from the API, not as they appear in the message content
A regular expression that matches role mentions like
<@&297577916114403338>
. The id
group property is present on the exec
result of this expression.Any users that were mentioned Order as received from the API, not as they appear in the message content
Checks if a user, guild member, thread member, role, or channel is mentioned. Takes into account user mentions, role mentions, channel mentions, replied user mention, and
@everyone
/@here
mentions.Name | Type | Optional | Description |
---|---|---|---|
data | UserResolvable | RoleResolvable | ChannelResolvable | No | The User/Role/Channel to check for |
options | MessageMentionsHasOptions | Yes | The options for the check |