interface APIMessage
extends
APIBaseMessageAPIMessageMentionsexport interface APIMessage extends APIBaseMessage, APIMessageMentionsSee also: https://discord.com/developers/docs/resources/message#message-object-message-structure
optionalactivity? : APIMessageActivity 
Sent with Rich Presence-related chat embeds
Inherited from: v10/APIBaseMessageNoChannel
See also: https://discord.com/developers/docs/resources/message#message-object-message-activity-structure
optionalapplication_id? : Snowflake 
If the message is a response to an Interaction, this is the id of the interaction's application
Inherited from: v10/APIBaseMessageNoChannel
optionalapplication? : Partial<APIApplication> 
Sent with Rich Presence-related chat embeds
Inherited from: v10/APIBaseMessageNoChannel
See also: https://discord.com/developers/docs/resources/application#application-object
attachments : APIAttachment[]
Any attached files
Inherited from: v10/APIBaseMessageNoChannel
See also: https://discord.com/developers/docs/resources/message#attachment-object-attachment-structureThe MESSAGE_CONTENT privileged gateway intent is required for verified applications to receive a non-empty value from this fieldIn the Discord Developers Portal, you need to enable the toggle of this intent of your application in **Bot > Privileged Gateway Intents**. You also need to specify the intent bit value (1 << 15) if you are connecting to the gatewayhttps://support-dev.discord.com/hc/articles/6207308062871
author : APIUser
The author of this message (only a valid user in the case where the message is generated by a user or bot user)If the message is generated by a webhook, the author object corresponds to the webhook's id, username, and avatar. You can tell if a message is generated by a webhook by checking for the webhook_id property
Inherited from: v10/APIBaseMessageNoChannel
See also: https://discord.com/developers/docs/resources/user#user-object
optionalcall? : APIMessageCall 
The call associated with the message
Inherited from: v10/APIBaseMessageNoChannel
optionalcomponents? : APIMessageTopLevelComponent[] 
Sent if the message contains components like buttons, action rows, or other interactive componentsThe MESSAGE_CONTENT privileged gateway intent is required for verified applications to receive a non-empty value from this fieldIn the Discord Developers Portal, you need to enable the toggle of this intent of your application in **Bot > Privileged Gateway Intents**. You also need to specify the intent bit value (1 << 15) if you are connecting to the gateway
Inherited from: v10/APIBaseMessageNoChannel
See also: https://support-dev.discord.com/hc/articles/6207308062871
content : string
Contents of the messageThe MESSAGE_CONTENT privileged gateway intent is required for verified applications to receive a non-empty value from this fieldIn the Discord Developers Portal, you need to enable the toggle of this intent of your application in **Bot > Privileged Gateway Intents**. You also need to specify the intent bit value (1 << 15) if you are connecting to the gateway
Inherited from: v10/APIBaseMessageNoChannel
See also: https://support-dev.discord.com/hc/articles/6207308062871
When this message was edited (or null if never)
Inherited from: v10/APIBaseMessageNoChannel
embeds : APIEmbed[]
Any embedded content
Inherited from: v10/APIBaseMessageNoChannel
See also: https://discord.com/developers/docs/resources/message#embed-objectThe MESSAGE_CONTENT privileged gateway intent is required for verified applications to receive a non-empty value from this fieldIn the Discord Developers Portal, you need to enable the toggle of this intent of your application in **Bot > Privileged Gateway Intents**. You also need to specify the intent bit value (1 << 15) if you are connecting to the gatewayhttps://support-dev.discord.com/hc/articles/6207308062871
optionalflags? : MessageFlags 
Message flags combined as a bitfield
Inherited from: v10/APIBaseMessageNoChannel
See also: https://discord.com/developers/docs/resources/message#message-object-message-flagshttps://en.wikipedia.org/wiki/Bit_field
optionalinteraction_metadata? : APIMessageInteractionMetadata 
Sent if the message is sent as a result of an interaction
Inherited from: v10/APIBaseMessageNoChannel
 deprecatedoptionalinteraction? : APIMessageInteraction 
In favor of interaction_metadata
Sent if the message is a response to an Interaction
Inherited from: v10/APIBaseMessageNoChannel
optionalmention_channels? : APIChannelMention[] 
Channels specifically mentioned in this messageNot all channel mentions in a message will appear in mention_channels. - Only textual channels that are visible to everyone in a lurkable guild will ever be included - Only crossposted messages (via Channel Following) currently include mention_channels at allIf no mentions in the message meet these requirements, this field will not be sent
Inherited from: v10/APIBaseMessageNoChannel
See also: https://discord.com/developers/docs/resources/message#channel-mention-object
mention_everyone : boolean
Whether this message mentions everyone
Inherited from: v10/APIBaseMessageNoChannel
mention_roles : APIRole['id'][]
Roles specifically mentioned in this message
Inherited from: v10/APIBaseMessageNoChannel
See also: https://discord.com/developers/docs/topics/permissions#role-object
mentions : APIUser[]
Users specifically mentioned in the messageThe member field is only present in MESSAGE_CREATE and MESSAGE_UPDATE events from text-based guild channels
Inherited from: v10/APIMessageMentions
See also: https://discord.com/developers/docs/resources/user#user-objecthttps://discord.com/developers/docs/resources/guild#guild-member-object
optionalmessage_reference? : APIMessageReference 
Reference data sent with crossposted messages, replies, pins, and thread starter messages
Inherited from: v10/APIBaseMessageNoChannel
See also: https://discord.com/developers/docs/resources/message#message-reference-structure
optionalmessage_snapshots? : APIMessageSnapshot[] 
The message associated with the message_reference. This is a minimal subset of fields in a message (e.g. author is excluded.)
Inherited from: v10/APIBaseMessageNoChannel
A nonce that can be used for optimistic message sending (up to 25 characters)**You will not receive this from further fetches. This is received only once from a MESSAGE_CREATE event to ensure it got sent**
Inherited from: v10/APIBaseMessageNoChannel
optionalpoll? : APIPoll 
A poll!The MESSAGE_CONTENT privileged gateway intent is required for verified applications to receive a non-empty value from this fieldIn the Discord Developers Portal, you need to enable the toggle of this intent of your application in **Bot > Privileged Gateway Intents**. You also need to specify the intent bit value (1 << 15) if you are connecting to the gateway
Inherited from: v10/APIBaseMessageNoChannel
See also: https://support-dev.discord.com/hc/articles/6207308062871
optionalposition? : number 
A generally increasing integer (there may be gaps or duplicates) that represents the approximate position of the message in a threadIt can be used to estimate the relative position of the message in a thread in company with total_message_sent on parent thread
Inherited from: v10/APIBaseMessageNoChannel
optionalreactions? : APIReaction[] 
Reactions to the message
Inherited from: v10/APIBaseMessageNoChannel
See also: https://discord.com/developers/docs/resources/message#reaction-object
optionalreferenced_message? : APIMessage | null 
The message associated with the message_referenceThis field is only returned for messages with a type of 19 (REPLY).If the message is a reply but the referenced_message field is not present, the backend did not attempt to fetch the message that was being replied to, so its state is unknown.If the field exists but is null, the referenced message was deleted
Inherited from: v10/APIBaseMessageNoChannel
See also: https://discord.com/developers/docs/resources/message#message-object
optionalresolved? : APIInteractionDataResolved 
Data for users, members, channels, and roles in the message's auto-populated select menus
Inherited from: v10/APIBaseMessageNoChannel
optionalrole_subscription_data? : APIMessageRoleSubscriptionData 
Data of the role subscription purchase or renewal that prompted this ROLE_SUBSCRIPTION_PURCHASE message
Inherited from: v10/APIBaseMessageNoChannel
optionalsticker_items? : APIStickerItem[] 
Sent if the message contains stickers
Inherited from: v10/APIBaseMessageNoChannel
See also: https://discord.com/developers/docs/resources/sticker#sticker-item-object
 deprecatedoptionalstickers? : APISticker[] 
Use APIBaseMessageNoChannel instead
The stickers sent with the message
Inherited from: v10/APIBaseMessageNoChannel
See also: https://discord.com/developers/docs/resources/sticker#sticker-object
optionalthread? : APIChannel 
Sent if a thread was started from this message
Inherited from: v10/APIBaseMessageNoChannel
type : MessageType
Type of message
Inherited from: v10/APIBaseMessageNoChannel
See also: https://discord.com/developers/docs/resources/message#message-object-message-types
optionalwebhook_id? : Snowflake 
If the message is generated by a webhook, this is the webhook's id
Inherited from: v10/APIBaseMessageNoChannel