Represents a message returned by the Discord API.
| Property | Type | Description |
|---|---|---|
| application_id | String | If the message is an interaction or application-owned webhook, the id of the application |
| attachments | Any attached files | |
| author | User | The author of this message |
| channel_id | String | Id of the channel the message was sent in |
| components | Components like buttons, action rows, or other interactive components | |
| content | String | Contents of the message |
| edited_timestamp | String | When this message was edited (or null if never) |
| embeds | Any embedded content | |
| flags | Integer | Message flags combined as a bitfield |
| id | String | Id of the message |
| interaction_metadata | Message_Interaction_Metadata | Sent if the message is sent as a result of an interaction |
| mention_channels | Channels specifically mentioned in this message | |
| mention_everyone | Boolean | Whether this message mentions @everyone |
| mention_roles | Ids of roles specifically mentioned in this message | |
| mentions | Users specifically mentioned in the message | |
| message_reference | Message_Reference | Reference data if the message is a reply |
| nonce | Any | Used for validating a message was sent (integer or string) |
| pinned | Boolean | Whether this message is pinned |
| poll | Poll | A poll |
| position | Integer | Approximate position of the message in a thread |
| reactions | Reactions to the message | |
| referenced_message | Message_Response | The message associated with the message_reference |
| sticker_items | Sent if the message contains stickers | |
| thread | Channel | The thread that was started from this message |
| timestamp | String | When this message was sent |
| tts | Boolean | Whether this was a TTS message |
| type | Integer | Type of message |
| webhook_id | String | If the message is generated by a webhook, this is the webhook's id |