MessageMentions
ClassOn this page
MessageMentions is a DiscordLua class representing a Discord resource. Obtain it from a manager, an event payload, or the constructor when one is documented below.
Properties
- Name
channels- Type
- Collection
- Access
- readonly
- Description
- Instance field
MessageMentions.channels. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this MessageMentions.
- Related
- Collection
- Name
client- Type
any- Access
- readonly
- Description
- Owning Client instance used for REST, cache, and event dispatch.
- Availability
- Populated from the Gateway/REST payload or constructor for this MessageMentions.
- Name
crosspostedChannels- Type
- Collection
- Access
- readonly
- Description
- Instance field
MessageMentions.crosspostedChannels. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this MessageMentions.
- Related
- Collection
- Name
everyone- Type
any- Access
- readonly
- Description
- Instance field
MessageMentions.everyone. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this MessageMentions.
- Name
members- Type
- Collection
- Access
- readonly
- Description
- Instance field
MessageMentions.members. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this MessageMentions.
- Related
- Collection
- Name
parsedUsers- Type
- Collection
- Access
- readonly
- Description
- Instance field
MessageMentions.parsedUsers. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this MessageMentions.
- Related
- Collection
- Name
raw- Type
any- Access
- readonly
- Description
- Instance field
MessageMentions.raw. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this MessageMentions.
- Name
roles- Type
- Collection
- Access
- readonly
- Description
- Instance field
MessageMentions.roles. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this MessageMentions.
- Related
- Collection
- Name
users- Type
- Collection
- Access
- readonly
- Description
- Instance field
MessageMentions.users. Read it after the object is constructed or wrapped from Gateway/REST data. - Availability
- Populated from the Gateway/REST payload or constructor for this MessageMentions.
- Related
- Collection
Methods
MessageMentions:has()
#Performs has on this MessageMentions. Call it from bot code when you need that operation on the current object.
Signature
MessageMentions:has(id) Parameters
| Name | Type | Required | Behavior |
|---|---|---|---|
id |
string |
required | Snowflake id string. |
Returns
MessageMentions — the same instance, for chaining.
Example
local discord = require("discord")
-- object is a MessageMentions
object:has("123")Static members
-
MessageMentions.ChannelsPattern -
MessageMentions.EveryonePattern -
MessageMentions.RolesPattern -
MessageMentions.UsersPattern
Examples
Obtain this object from a manager, wrap helper, or event payload — it is not constructed directly in typical bot code.
Related APIs
ActionRow · Activity · ActivityInstance · ActivityLocation · AnonymousGuild · ApplicationCommand · ApplicationRoleConnectionMetadata · Attachment
Version: discord 1.2.4 · runtime 1.0.0