Skip to content

Commit c7a5710

Browse files
Add Action Row child table
1 parent f6b0e07 commit c7a5710

File tree

5 files changed

+23
-13
lines changed

5 files changed

+23
-13
lines changed

docs/change-log/2022-10-13-new-select-menu-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ Four new select menu [component types](/docs/components/reference#component-obje
1010
* Mentionable (user *and* role) select (type `7`)
1111
* Channel select (type `8`)
1212

13-
The new select menu components are defined similarly to the existing string select menu—with the exception of not including the `options` field and, within channel select menus, having the option to include a `channel_types` field. The [select menu interaction](/docs/components/reference#user-select-user-select-interaction-response-structure) apps receive also contain a [`resolved` field](/docs/components/reference#user-select-resolved-object-example) for the new components.
13+
The new select menu components are defined similarly to the existing string select menu—with the exception of not including the `options` field and, within channel select menus, having the option to include a `channel_types` field. The [select menu interaction](/docs/components/reference#user-select-examples) apps receive also contain a [`resolved` field](/docs/components/reference#user-select-examples) for the new components.
1414

1515
More details can be found in the updated [select menu documentation](/docs/components/reference#component-object-component-types).

docs/change-log/2025-08-27-modal-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ We're introducing a new top-level [Label](/docs/components/reference#label) comp
2020
- The `required` field is now available on String Selects (defaults to true in modals, ignored in messages)
2121
- The `disabled` field on String Selects will trigger an error if used in modals and is not currently allowed
2222

23-
We've also documented [interaction responses](/docs/components/reference#user-select-user-select-interaction-response-structure) and [resolved objects](/docs/components/reference#user-select-resolved-object-example) for interactive components.
23+
We've also documented [interaction responses](/docs/components/reference#user-select-examples) and resolved objects for interactive components in each component's Examples section.
2424

2525
#### New Layout Component
2626

docs/components/reference.mdx

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,22 @@ Action Rows can contain one of the following:
9494

9595
###### Action Row Structure
9696

97-
| Field | Type | Description |
98-
|------------|-------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------|
99-
| type | integer | `1` for action row component |
100-
| id? | integer | Optional identifier for component |
101-
| components | array of [component objects](/docs/components/reference#component-object-component-types) | Up to 5 interactive [button](/docs/components/reference#button) components or a single [select](/docs/components/reference#user-select) component |
102-
97+
| Field | Type | Description |
98+
|------------|-----------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------|
99+
| type | integer | `1` for action row component |
100+
| id? | integer | Optional identifier for component |
101+
| components | array of [action row child components](/docs/components/reference#component-object-component-types) | Up to 5 interactive [button](/docs/components/reference#button) components or a single [select](/docs/components/reference#user-select) component |
102+
103+
###### Action Row Child Components
104+
105+
| Available Components | Description |
106+
|---------------------------------------------------------------------|-------------------------------------------|
107+
| [button](/docs/components/reference#button) | An Action Row can contain up to 5 Buttons |
108+
| [string select](/docs/components/reference#string-select) | A single String Select |
109+
| [user select](/docs/components/reference#user-select) | A single User Select |
110+
| [role select](/docs/components/reference#role-select) | A single Role Select |
111+
| [mentionable select](/docs/components/reference#mentionable-select) | A single Mentionable Select |
112+
| [channel select](/docs/components/reference#channel-select) | A single Channel Select |
103113

104114
###### Examples
105115
<Collapsible title="Message Example" description="Message create payload with an Action Row component" icon="code">

docs/interactions/receiving-and-responding.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ Sent in `APPLICATION_COMMAND` and `APPLICATION_COMMAND_AUTOCOMPLETE` interaction
127127

128128
###### Modal Submit Data Structure
129129

130-
| Field | Type | Description |
131-
|------------|--------------------------------------------------------------------|-----------------------------------------------------------------------------------------|
132-
| custom_id | string | The custom ID provided for the modal |
133-
| components | array of [modal submit component data](/docs/interactions/receiving-and-responding#interaction-response-object-modal) | Values submitted by the user |
130+
| Field | Type | Description |
131+
|------------|-----------------------------------------------------------------------------------------------------------------------|--------------------------------------|
132+
| custom_id | string | The custom ID provided for the modal |
133+
| components | array of [modal submit component data](/docs/interactions/receiving-and-responding#interaction-response-object-modal) | Values submitted by the user |
134134

135135
###### Resolved Data Structure
136136

docs/resources/message.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ An app will receive empty values in the `content`, `embeds`, `attachments`, and
5353
| stickers? | array of [sticker](/docs/resources/sticker#sticker-object) objects | **Deprecated** the stickers sent with the message |
5454
| position? | integer | A generally increasing integer (there may be gaps or duplicates) that represents the approximate position of the message in a thread, it can be used to estimate the relative position of the message in a thread in company with `total_message_sent` on parent thread |
5555
| role_subscription_data? | [role subscription data](/docs/resources/message#role-subscription-data-object) object | data of the role subscription purchase or renewal that prompted this ROLE_SUBSCRIPTION_PURCHASE message |
56-
| resolved? | [resolved](/docs/interactions/receiving-and-responding#interaction-object-resolved-data-structure) data | data for users, members, channels, and roles in the message's [auto-populated select menus](/docs/interactions/receiving-and-responding#interaction-response-object-modal) |
56+
| resolved? | [resolved](/docs/interactions/receiving-and-responding#interaction-object-resolved-data-structure) data | data for users, members, channels, and roles in the message's [auto-populated select menus](/docs/interactions/receiving-and-responding#interaction-response-object-modal) |
5757
| poll? \[2\] | [poll](/docs/resources/poll#poll-object) object | A poll! |
5858
| call? | [message call](/docs/resources/message#message-call-object) object | the call associated with the message |
5959

0 commit comments

Comments
 (0)