Skip to content

Commit b970ff4

Browse files
committed
feat: add resolved data
1 parent 3b55211 commit b970ff4

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

deno/payloads/v10/_interactions/modalSubmit.ts

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deno/payloads/v9/_interactions/modalSubmit.ts

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

payloads/v10/_interactions/modalSubmit.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type {
33
APIBaseInteraction,
44
APIDMInteractionWrapper,
55
APIGuildInteractionWrapper,
6+
APIInteractionDataResolved,
67
ComponentType,
78
InteractionType,
89
} from '../index';
@@ -59,6 +60,12 @@ export type APIModalSubmissionComponent = ModalSubmitActionRowComponent | ModalS
5960
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-modal-submit-data-structure}
6061
*/
6162
export interface APIModalSubmission {
63+
/**
64+
* Data for users, members, channels, and roles in the modal's auto-populated select menus
65+
*
66+
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-resolved-data-structure}
67+
*/
68+
resolved?: APIInteractionDataResolved;
6269
/**
6370
* A developer-defined identifier for the component, max 100 characters
6471
*/

payloads/v9/_interactions/modalSubmit.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type {
33
APIBaseInteraction,
44
APIDMInteractionWrapper,
55
APIGuildInteractionWrapper,
6+
APIInteractionDataResolved,
67
ComponentType,
78
InteractionType,
89
} from '../index';
@@ -59,6 +60,12 @@ export type APIModalSubmissionComponent = ModalSubmitActionRowComponent | ModalS
5960
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-modal-submit-data-structure}
6061
*/
6162
export interface APIModalSubmission {
63+
/**
64+
* Data for users, members, channels, and roles in the modal's auto-populated select menus
65+
*
66+
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-resolved-data-structure}
67+
*/
68+
resolved?: APIInteractionDataResolved;
6269
/**
6370
* A developer-defined identifier for the component, max 100 characters
6471
*/

0 commit comments

Comments
 (0)