Skip to content

Commit 6058b2e

Browse files
anthonydiscordLulalabyadvaith1
authored
Modal Selects (discord#7804)
* Add changelog skeleton * Fix spacing for .md code highlighting * Add modal selects * Add interactions * Fix Label interaction response * Add Text Display modal * Add changelog * Add modal examples * Add modal images * note that we receive partial components for modal interactions (discord#7811) Resolves https://canary.discord.com/channels/1317206872763404478/1317208024682725426/1413548555070865448 * fix: note about modal interactions was in the wrong place (discord#7812) * Lossless webp * Less repetetive wording * Changelog reword * Update docs/change-log/2025-09-10-more-modal-components.md Co-authored-by: advaith <[email protected]> --------- Co-authored-by: Lala Sabathil <[email protected]> Co-authored-by: advaith <[email protected]>
1 parent 02de63a commit 6058b2e

File tree

8 files changed

+613
-61
lines changed

8 files changed

+613
-61
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: "Adding More Modal Components!"
3+
date: "2025-09-10"
4+
topics:
5+
- "Interactions"
6+
- "Components"
7+
---
8+
9+
We've added more components to modals! All select menus (User, Role, Mentionable, Channel) are now fully supported in modals. In order to use a select menu in a modal, it must be placed inside a [Label](/docs/components/reference#label) component. We've also added the [Text Display](/docs/components/reference#text-display) component with markdown support as a top-level component in modals.
10+
11+
#### Components Now Supported in Modals:
12+
13+
- [**User Select**](/docs/components/reference#user-select)
14+
- [**Role Select**](/docs/components/reference#role-select)
15+
- [**Mentionable Select**](/docs/components/reference#mentionable-select)
16+
- [**Channel Select**](/docs/components/reference#channel-select)
17+
- [**Text Display**](/docs/components/reference#text-display)
18+
19+
#### Getting Started
20+
21+
- [Using Modal Components](/docs/components/using-modal-components) - Dive into creating a modal
22+
23+
#### Developer Resources
24+
25+
Check out our [Component Reference](/docs/components/reference) for details on all available components.

docs/components/reference.mdx

Lines changed: 574 additions & 53 deletions
Large diffs are not rendered by default.

docs/interactions/receiving-and-responding.mdx

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,17 +127,23 @@ 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 [component interaction response](/docs/interactions/receiving-and-responding#interaction-object-component-interaction-response-structures) | Values submitted by the user |
134134

135135
###### Component Interaction Response Structures
136136

137-
| Component |
138-
|--------------------------------------------------------------------------------------------------------|
139-
| [String Select](/docs/components/reference#string-select-string-select-interaction-response-structure) |
140-
| [Text Input](/docs/components/reference#text-input-text-input-interaction-response-structure) |
137+
| Component |
138+
|-----------------------------------------------------------------------------------------------------------------------|
139+
| [String Select](/docs/components/reference#string-select-string-select-interaction-response-structure) |
140+
| [Text Input](/docs/components/reference#text-input-text-input-interaction-response-structure) |
141+
| [User Select](/docs/components/reference#user-select-user-select-interaction-response-structure) |
142+
| [Role Select](/docs/components/reference#role-select-role-select-interaction-response-structure) |
143+
| [Mentionable Select](/docs/components/reference#mentionable-select-mentionable-select-interaction-response-structure) |
144+
| [Channel Select](/docs/components/reference#channel-select-channel-select-interaction-response-structure) |
145+
| [Text Display](/docs/components/reference#text-display-text-display-interaction-response-structure) |
146+
| [Label](/docs/components/reference#label-label-interaction-response-structure) |
141147

142148
###### Resolved Data Structure
143149

18.6 KB
Loading
21.7 KB
Loading
20.5 KB
Loading
16.2 KB
Loading
28.6 KB
Loading

0 commit comments

Comments
 (0)