Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
558 changes: 520 additions & 38 deletions docs/interactions/Message_Components.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/interactions/Receiving_and_Responding.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ While the `data` field is guaranteed to be present for all [interaction types](#

| Field | Type | Description |
|----------------|-------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|
| id | integer | [`id`](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/component-object-base-component-structure) of the component |
| custom_id | string | [`custom_id`](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/custom-id) of the component |
| component_type | integer | [type](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/component-object-component-types) of the component |
| values?\* | array of [select option values](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/select-menu-object-select-option-structure) | Values the user selected in a [select menu](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/select-menu-object) component |
Expand Down
29 changes: 15 additions & 14 deletions docs/resources/Message.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,20 +130,21 @@ Represents a message sent in a channel within Discord.

###### Message Flags

| Flag | Value | Description |
|----------------------------------------|-----------|-----------------------------------------------------------------------------------|
| CROSSPOSTED | `1 << 0` | this message has been published to subscribed channels (via Channel Following) |
| IS_CROSSPOST | `1 << 1` | this message originated from a message in another channel (via Channel Following) |
| SUPPRESS_EMBEDS | `1 << 2` | do not include any embeds when serializing this message |
| SOURCE_MESSAGE_DELETED | `1 << 3` | the source message for this crosspost has been deleted (via Channel Following) |
| URGENT | `1 << 4` | this message came from the urgent message system |
| HAS_THREAD | `1 << 5` | this message has an associated thread, with the same id as the message |
| EPHEMERAL | `1 << 6` | this message is only visible to the user who invoked the Interaction |
| LOADING | `1 << 7` | this message is an Interaction Response and the bot is "thinking" |
| FAILED_TO_MENTION_SOME_ROLES_IN_THREAD | `1 << 8` | this message failed to mention some roles and add their members to the thread |
| SUPPRESS_NOTIFICATIONS | `1 << 12` | this message will not trigger push and desktop notifications |
| IS_VOICE_MESSAGE | `1 << 13` | this message is a voice message |
| HAS_SNAPSHOT | `1 << 14` | this message has a snapshot (via Message Forwarding) |
| Flag | Value | Description |
|----------------------------------------|-----------|---------------------------------------------------------------------------------------------------|
| CROSSPOSTED | `1 << 0` | this message has been published to subscribed channels (via Channel Following) |
| IS_CROSSPOST | `1 << 1` | this message originated from a message in another channel (via Channel Following) |
| SUPPRESS_EMBEDS | `1 << 2` | do not include any embeds when serializing this message |
| SOURCE_MESSAGE_DELETED | `1 << 3` | the source message for this crosspost has been deleted (via Channel Following) |
| URGENT | `1 << 4` | this message came from the urgent message system |
| HAS_THREAD | `1 << 5` | this message has an associated thread, with the same id as the message |
| EPHEMERAL | `1 << 6` | this message is only visible to the user who invoked the Interaction |
| LOADING | `1 << 7` | this message is an Interaction Response and the bot is "thinking" |
| FAILED_TO_MENTION_SOME_ROLES_IN_THREAD | `1 << 8` | this message failed to mention some roles and add their members to the thread |
| SUPPRESS_NOTIFICATIONS | `1 << 12` | this message will not trigger push and desktop notifications |
| IS_VOICE_MESSAGE | `1 << 13` | this message is a voice message |
| HAS_SNAPSHOT | `1 << 14` | this message has a snapshot (via Message Forwarding) |
| IS_COMPONENTS_V2 | `1 << 15` | this message uses the new components system. Disables the ability of sending `content` & `embeds` |

###### Example Message

Expand Down
Binary file added images/message-components-v2-container.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/message-components-v2-file.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/message-components-v2-media-gallery.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/message-components-v2-section.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/message-components-v2-separator.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/message-components-v2-text-display.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.