Skip to content

Commit 13780e4

Browse files
committed
Update Message_Components.md
1 parent 80d9e66 commit 13780e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/interactions/Message_Components.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Components are a field on the [message object](#DOCS_RESOURCES_MESSAGE/message-o
3131
| id?\* | integer | Unique identifier for the component; auto populated through increment if not provided. |
3232
| type | integer | [Type](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/component-object-component-types) of component |
3333

34-
\* `id` is optional when sending a message, but will always be present when received. Modals do not have an `id` field.
34+
\* `id` is optional when sending a message, but will always be present when received. Exceptions are modals.
3535

3636
###### Component Types
3737

@@ -549,6 +549,8 @@ Text inputs are an interactive component that render in modals. They can be used
549549

550550
When defining a text input component, you can set attributes to customize the behavior and appearance of it. However, not all attributes will be returned in the [text input interaction payload](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/text-input-object-text-input-interaction).
551551

552+
Modals do not make use of the `id` field on their components. Meaning that the action row and text input components will not have an `id` field in the interaction payload.
553+
552554
![A text input in a modal on desktop client](modal-desktop.png)
553555

554556
###### Text Input Example
@@ -594,8 +596,6 @@ When defining a text input component, you can set attributes to customize the be
594596
| value? | string | Pre-filled value for this component; max 4000 characters |
595597
| placeholder? | string | Custom placeholder text if the input is empty; max 100 characters |
596598

597-
The `id` field does not exist on the text input object, as it is not returned in the interaction payload.
598-
599599
###### Text Input Styles
600600

601601
| Name | Value | Description |

0 commit comments

Comments
 (0)