Members
(static) CHANNELS_PATTERN :RegExp
Regular expression that globally matches channel mentions like `<#222079895583457280>`
Type:
- RegExp
(static) EVERYONE_PATTERN :RegExp
Regular expression that globally matches `@everyone` and `@here`
Type:
- RegExp
(static) ROLES_PATTERN :RegExp
Regular expression that globally matches role mentions like `<@&297577916114403338>`
Type:
- RegExp
(static) USERS_PATTERN :RegExp
Regular expression that globally matches user mentions like `<@81440962496172032>`
Type:
- RegExp
(private, nullable) _channels :Collection.<Snowflake, GuildChannel>
Cached channels for MessageMentions#channels
Type:
- Collection.<Snowflake, GuildChannel>
- Source:
(private, nullable) _members :Collection.<Snowflake, GuildMember>
Cached members for MessageMentions#members
Type:
- Collection.<Snowflake, GuildMember>
- Source:
(readonly) channels :Collection.<Snowflake, GuildChannel>
Any channels that were mentioned
Order as they appear first in the message content
Type:
- Collection.<Snowflake, GuildChannel>
crosspostedChannels :Collection.<Snowflake, CrosspostedChannel>
A collection of crossposted channels
Order as received from the API, not as they appear in the message content
Type:
- Collection.<Snowflake, CrosspostedChannel>
everyone :boolean
Whether `@everyone` or `@here` were mentioned
Type:
- boolean
- Source:
(readonly, nullable) members :Collection.<Snowflake, GuildMember>
Any members that were mentioned (only in TextChannels)
Order as received from the API, not as they appear in the message content
Type:
- Collection.<Snowflake, GuildMember>
roles :Collection.<Snowflake, Role>
Any roles that were mentioned
Order as received from the API, not as they appear in the message content
Type:
- Source:
users :Collection.<Snowflake, User>
Any users that were mentioned
Order as received from the API, not as they appear in the message content
Type:
- Source:
Methods
has(data, optionsopt) → {boolean}
Checks if a user, guild member, role, or channel is mentioned.
Takes into account user mentions, role mentions, and @everyone/@here mentions.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data |
UserResolvable | RoleResolvable | GuildChannelResolvable | User/Role/Channel to check | |||||||||||||||||||||
options |
Object |
<optional> |
Options
Properties
|
Returns:
- Type
- boolean