OptionalactivitySent with Rich Presence-related chat embeds
OptionalapplicationSent with Rich Presence-related chat embeds
Optionalapplication_If the message is a response to an Interaction, this is the id of the interaction's application
Any attached files
The MESSAGE_CONTENT privileged gateway intent is required for verified applications to receive a non-empty value from this field
In 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
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
OptionalcallThe call associated with the message
OptionalcomponentsSent if the message contains components like buttons, action rows, or other interactive components
The MESSAGE_CONTENT privileged gateway intent is required for verified applications to receive a non-empty value from this field
In 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
Contents of the message
The MESSAGE_CONTENT privileged gateway intent is required for verified applications to receive a non-empty value from this field
In 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
When this message was edited (or null if never)
Any embedded content
The MESSAGE_CONTENT privileged gateway intent is required for verified applications to receive a non-empty value from this field
In 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
OptionalflagsMessage flags combined as a bitfield
ID of the message
OptionalinteractionSent if the message is a response to an Interaction
Optionalinteraction_Sent if the message is sent as a result of an interaction
Optionalmention_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
Whether this message mentions everyone
Roles specifically mentioned in this message
Optionalmessage_Reference data sent with crossposted messages, replies, pins, and thread starter messages
Optionalmessage_The message associated with the message_reference. This is a minimal subset of fields in a message (e.g. author is excluded.)
OptionalnonceA 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
OptionalpollA poll!
The MESSAGE_CONTENT privileged gateway intent is required for verified applications to receive a non-empty value from this field
In 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
OptionalpositionA generally increasing integer (there may be gaps or duplicates) that represents the approximate position of the message in a thread
It can be used to estimate the relative position of the message in a thread in company with total_message_sent on parent thread
OptionalreactionsReactions to the message
Optionalreferenced_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
OptionalresolvedData for users, members, channels, and roles in the message's auto-populated select menus
Optionalrole_Data of the role subscription purchase or renewal that prompted this ROLE_SUBSCRIPTION_PURCHASE message
Optionalsticker_Sent if the message contains stickers
OptionalstickersThe stickers sent with the message
OptionalthreadSent if a thread was started from this message
When this message was sent
Whether this was a TTS message
Type of message
Optionalwebhook_If the message is generated by a webhook, this is the webhook's id
See
https://discord.com/developers/docs/resources/message#message-object-message-structure