Skip to content

Commit 464a9c8

Browse files
authored
fix: add missing text display in modal submission (#1362)
* fix: add missing text display in modal submission * chore: lint
1 parent 4d3d83d commit 464a9c8

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

deno/payloads/v10/_interactions/modalSubmit.ts

Lines changed: 6 additions & 1 deletion
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: 6 additions & 1 deletion
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: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,16 @@ export interface ModalSubmitActionRowComponent extends APIBaseComponent<Componen
5050
components: APIModalSubmitTextInputComponent[];
5151
}
5252

53+
export interface ModalSubmitTextDisplayComponent extends APIBaseComponent<ComponentType.TextDisplay> {}
54+
5355
export interface ModalSubmitLabelComponent extends APIBaseComponent<ComponentType.Label> {
5456
component: ModalSubmitComponent;
5557
}
5658

57-
export type APIModalSubmissionComponent = ModalSubmitActionRowComponent | ModalSubmitLabelComponent;
59+
export type APIModalSubmissionComponent =
60+
| ModalSubmitActionRowComponent
61+
| ModalSubmitLabelComponent
62+
| ModalSubmitTextDisplayComponent;
5863

5964
/**
6065
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-modal-submit-data-structure}

payloads/v9/_interactions/modalSubmit.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,16 @@ export interface ModalSubmitActionRowComponent extends APIBaseComponent<Componen
5050
components: APIModalSubmitTextInputComponent[];
5151
}
5252

53+
export interface ModalSubmitTextDisplayComponent extends APIBaseComponent<ComponentType.TextDisplay> {}
54+
5355
export interface ModalSubmitLabelComponent extends APIBaseComponent<ComponentType.Label> {
5456
component: ModalSubmitComponent;
5557
}
5658

57-
export type APIModalSubmissionComponent = ModalSubmitActionRowComponent | ModalSubmitLabelComponent;
59+
export type APIModalSubmissionComponent =
60+
| ModalSubmitActionRowComponent
61+
| ModalSubmitLabelComponent
62+
| ModalSubmitTextDisplayComponent;
5863

5964
/**
6065
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-modal-submit-data-structure}

0 commit comments

Comments
 (0)