Sent with Rich Presence-related chat embeds
Sent with Rich Presence-related chat embeds
If the message is a response to an Interaction, this is the id of the interaction's application
Any attached files
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
See https://discord.com/developers/docs/resources/user#user-object
ID of the channel the message was sent in
Sent if the message contains components like buttons, action rows, or other interactive components
Contents of the message
When this message was edited (or null if never)
Any embedded content
Message flags combined as a bitfield
ID of the guild the message was sent in
ID of the message
Sent if the message is a response to an Interaction
Member properties for this message's author
The member object exists in MESSAGE_CREATE
and MESSAGE_UPDATE
events
from text-based guild channels
See https://discord.com/developers/docs/resources/guild#guild-member-object
Channels specifically mentioned in this message
Not all channel mentions in a message will appear in mention_channels
.
mention_channels
at allIf no mentions in the message meet these requirements, this field will not be sent
See https://discord.com/developers/docs/resources/channel#channel-mention-object
Whether this message mentions everyone
Roles specifically mentioned in this message
Users specifically mentioned in the message
The member
field is only present in MESSAGE_CREATE
and MESSAGE_UPDATE
events
from text-based guild channels
See https://discord.com/developers/docs/resources/user#user-object See https://discord.com/developers/docs/resources/guild#guild-member-object
Reference data sent with crossposted messages, replies, pins, and thread starter messages
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
Whether this message is pinned
Reactions to the message
The message associated with the message_reference
This 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
See https://discord.com/developers/docs/resources/channel#message-object
Sent if the message contains stickers
The stickers sent with the message
Sent if a thread was started from this message
When this message was sent
Whether this was a TTS message
If the message is generated by a webhook, this is the webhook's id
Generated using TypeDoc version 0.22.16, the 9/16/2022 at 1:09:16 AM
https://discord.com/developers/docs/resources/channel#message-object-message-structure