You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| id| integer | Unique identifier for the component; auto populated through increment if not provided. |
98
+
| id?\*| integer | Unique identifier for the component; auto populated through increment if not provided. |
99
99
| type | integer |`1` for a action row |
100
100
| components | array of [component objects](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/component-object)| Can be of [type](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/component-object-component-types)`2`, `3`, `4`, `5`, `6`, `7` or `8`; max of 5 |
101
101
102
+
\*`id` cannot be set if the action row is used for a modal.
102
103
103
104
## Responding to a Component Interaction
104
105
@@ -124,7 +125,7 @@ Buttons are interactive components that render in messages. They can be clicked
| id| integer | Unique identifier for the component; auto populated through increment if not provided. |
356
+
| id?| integer | Unique identifier for the component; auto populated through increment if not provided. |
356
357
| type | integer |[Type](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/component-object-component-types) of select menu component (text: `3`, user: `5`, role: `6`, mentionable: `7`, channels: `8`) |
357
358
| custom_id | string | ID for the select menu; max 100 characters |
358
359
| options?\*| array of [select options](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/select-menu-object-select-option-structure)| Specified choices in a select menu (only required and available for string selects (type `3`); max 25 |
@@ -728,7 +729,7 @@ Section components allow you to define up to 3 text display components and add e
| id| integer | Unique identifier for the component; auto populated through increment if not provided. |
732
+
| id?| integer | Unique identifier for the component; auto populated through increment if not provided. |
732
733
| type | integer |`9` for a section component |
733
734
| components | array of [text display objects](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/text-display-object-text-display-structure)| Array of text display components; max of 3. |
734
735
| accessory | component | An accessory component, can be [Thumbnail](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/thumbnail-object) or [Button](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/button-object)|
@@ -769,7 +770,7 @@ A text display component allows you to send text.
| id| integer | Unique identifier for the component; auto populated through increment if not provided. |
821
+
| id?| integer | Unique identifier for the component; auto populated through increment if not provided. |
821
822
| type | integer |`12` for a media gallery component |
822
823
| items | array of [media gallery item objects](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/media-gallery-object-media-gallery-item-structure)| Array of media gallery items; max of 10. |
823
824
@@ -866,7 +867,7 @@ Note: There is no "preview" support for simple text files, nor audio file suppor
| id| integer | Unique identifier for the component; auto populated through increment if not provided. |
870
+
| id?| integer | Unique identifier for the component; auto populated through increment if not provided. |
870
871
| type | integer |`13` for a file component |
871
872
| file |[unfurled media item object](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/unfurled-media-item-object)| The file to be displayed, supports only `attachment://<filename>` references |
872
873
| spoiler? | boolean | Whether the file is a spoiler. Defaults to `false`|
@@ -909,7 +910,7 @@ Separator components allow you to divide components with a divider. You can make
| id| integer | Unique identifier for the component; auto populated through increment if not provided. |
913
+
| id?| integer | Unique identifier for the component; auto populated through increment if not provided. |
913
914
| type | integer |`14` for a separator component |
914
915
| divider? | boolean | Whether the separator is a divider. Defaults to `true`|
915
916
| spacing? |[seperator spacing size](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/separator-object-separator-spacing-size)| Spacing size for the separator. Defaults to `1`|
@@ -1023,7 +1024,7 @@ Containers are a new way to group components together. You can also specify a ac
0 commit comments