Skip to content

Commit 04c8180

Browse files
committed
Update Message_Components.md
1 parent 791aea9 commit 04c8180

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

docs/interactions/Message_Components.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -560,11 +560,9 @@ When defining a text input component, you can set attributes to customize the be
560560
"custom_id":"cool_modal",
561561
"components": [
562562
{
563-
"id": 1,
564563
"type":1,
565564
"components":[
566565
{
567-
"id": 2,
568566
"type":4,
569567
"custom_id":"name",
570568
"label":"Name",
@@ -586,7 +584,6 @@ When defining a text input component, you can set attributes to customize the be
586584

587585
| Field | Type | Description |
588586
|--------------|---------|---------------------------------------------------------------------------------------------------|
589-
| id?\* | integer | Unique identifier for the component; auto populated through increment if not provided. |
590587
| type | integer | `4` for a text input |
591588
| custom_id | string | Developer-defined identifier for the input; max 100 characters |
592589
| style | integer | The [Text Input Style](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/text-input-object-text-input-styles) |
@@ -597,6 +594,8 @@ When defining a text input component, you can set attributes to customize the be
597594
| value? | string | Pre-filled value for this component; max 4000 characters |
598595
| placeholder? | string | Custom placeholder text if the input is empty; max 100 characters |
599596

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

602601
| Name | Value | Description |
@@ -628,11 +627,9 @@ When defining a text input component, you can set attributes to customize the be
628627
"data": {
629628
"components": [
630629
{
631-
"id": 1,
632630
"type": 1,
633631
"components": [
634632
{
635-
"id": 2,
636633
"custom_id": "name",
637634
"type": 4,
638635
"value": "John"

0 commit comments

Comments
 (0)