Skip to content

Commit 9e7e225

Browse files
committed
fix: modal submit type
1 parent 8e3fdfe commit 9e7e225

File tree

5 files changed

+31
-19
lines changed

5 files changed

+31
-19
lines changed

deno/payloads/v10/_interactions/modalSubmit.ts

Lines changed: 2 additions & 2 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: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deno/payloads/v9/channel.ts

Lines changed: 23 additions & 11 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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { APIBaseComponent, APILabelComponent } from '../channel';
1+
import type { APIBaseComponent, APIStringSelectComponentInModal, APITextInputComponentInModal } from '../channel';
22
import type {
33
APIBaseInteraction,
44
APIDMInteractionWrapper,
@@ -18,7 +18,7 @@ export interface ModalSubmitActionRowComponent extends APIBaseComponent<Componen
1818
}
1919

2020
export interface ModalSubmitLabelComponent extends APIBaseComponent<ComponentType.Label> {
21-
component: APILabelComponent;
21+
component: APIStringSelectComponentInModal | APITextInputComponentInModal;
2222
}
2323

2424
/**

payloads/v9/_interactions/modalSubmit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { APIBaseComponent, APILabelComponent } from '../channel';
1+
import type { APIBaseComponent, APIStringSelectComponentInModal, APITextInputComponentInModal } from '../channel';
22
import type {
33
APIBaseInteraction,
44
APIDMInteractionWrapper,
@@ -18,7 +18,7 @@ export interface ModalSubmitActionRowComponent extends APIBaseComponent<Componen
1818
}
1919

2020
export interface ModalSubmitLabelComponent extends APIBaseComponent<ComponentType.Label> {
21-
component: APILabelComponent;
21+
component: APIStringSelectComponentInModal | APITextInputComponentInModal;
2222
}
2323

2424
/**

0 commit comments

Comments
 (0)