Skip to content

Commit dc2f2ee

Browse files
committed
fix: update APIModalComponent
1 parent 992b596 commit dc2f2ee

File tree

8 files changed

+60
-16
lines changed

8 files changed

+60
-16
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/v10/channel.ts

Lines changed: 13 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: 13 additions & 2 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, APIStringSelectComponentInModal, APITextInputComponentInModal } from '../channel';
1+
import type { APIBaseComponent, APIComponentInModalLabel } 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: APIStringSelectComponentInModal | APITextInputComponentInModal;
21+
component: APIComponentInModalLabel;
2222
}
2323

2424
/**

payloads/v10/channel.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2348,7 +2348,7 @@ export interface APIContainerComponent extends APIBaseComponent<ComponentType.Co
23482348
export interface APILabelComponent extends APIBaseComponent<ComponentType.Label> {
23492349
label: string;
23502350
description?: string;
2351-
component: APIStringSelectComponentInModal | APITextInputComponentInModal;
2351+
component: APIComponentInModalLabel;
23522352
}
23532353

23542354
/**
@@ -2449,7 +2449,7 @@ export type APIMessageTopLevelComponent =
24492449
/**
24502450
* @see {@link https://discord.com/developers/docs/components/reference}
24512451
*/
2452-
export type APIModalComponent = APIActionRowComponent<APIComponentInModalActionRow> | APIComponentInModalActionRow;
2452+
export type APIModalComponent = APIActionRowComponent<APIComponentInModal> | APIComponentInModal;
24532453

24542454
/**
24552455
* @see {@link https://discord.com/developers/docs/components/reference#action-row}
@@ -2464,8 +2464,19 @@ export type APIComponentInMessageActionRow = APIButtonComponent | APISelectMenuC
24642464
/**
24652465
* @see {@link https://discord.com/developers/docs/components/reference#action-row}
24662466
*/
2467+
export type APIComponentInModal = APIComponentInModalActionRow | APIComponentInModalLabel;
2468+
2469+
/**
2470+
* @see {@link https://discord.com/developers/docs/components/reference#action-row}
2471+
* @deprecated
2472+
*/
24672473
export type APIComponentInModalActionRow = APITextInputComponentInActionRow;
24682474

2475+
/**
2476+
* @see {@link https://discord.com/developers/docs/components/reference#action-row}
2477+
*/
2478+
export type APIComponentInModalLabel = APIStringSelectComponentInModal | APITextInputComponentInModal;
2479+
24692480
/**
24702481
* @see {@link https://discord.com/developers/docs/components/reference#section}
24712482
*/

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, APIStringSelectComponentInModal, APITextInputComponentInModal } from '../channel';
1+
import type { APIBaseComponent, APIComponentInModalLabel } 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: APIStringSelectComponentInModal | APITextInputComponentInModal;
21+
component: APIComponentInModalLabel;
2222
}
2323

2424
/**

payloads/v9/channel.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2347,7 +2347,7 @@ export interface APIContainerComponent extends APIBaseComponent<ComponentType.Co
23472347
export interface APILabelComponent extends APIBaseComponent<ComponentType.Label> {
23482348
label: string;
23492349
description?: string;
2350-
component: APIStringSelectComponentInModal | APITextInputComponentInModal;
2350+
component: APIComponentInModalLabel;
23512351
}
23522352

23532353
/**
@@ -2448,7 +2448,7 @@ export type APIMessageTopLevelComponent =
24482448
/**
24492449
* @see {@link https://discord.com/developers/docs/components/reference}
24502450
*/
2451-
export type APIModalComponent = APIActionRowComponent<APIComponentInModalActionRow> | APIComponentInModalActionRow;
2451+
export type APIModalComponent = APIActionRowComponent<APIComponentInModal> | APIComponentInModal;
24522452

24532453
/**
24542454
* @see {@link https://discord.com/developers/docs/components/reference#action-row}
@@ -2463,8 +2463,19 @@ export type APIComponentInMessageActionRow = APIButtonComponent | APISelectMenuC
24632463
/**
24642464
* @see {@link https://discord.com/developers/docs/components/reference#action-row}
24652465
*/
2466+
export type APIComponentInModal = APIComponentInModalActionRow | APIComponentInModalLabel;
2467+
2468+
/**
2469+
* @see {@link https://discord.com/developers/docs/components/reference#action-row}
2470+
* @deprecated
2471+
*/
24662472
export type APIComponentInModalActionRow = APITextInputComponentInActionRow;
24672473

2474+
/**
2475+
* @see {@link https://discord.com/developers/docs/components/reference#action-row}
2476+
*/
2477+
export type APIComponentInModalLabel = APIStringSelectComponentInModal | APITextInputComponentInModal;
2478+
24682479
/**
24692480
* @see {@link https://discord.com/developers/docs/components/reference#section}
24702481
*/

0 commit comments

Comments
 (0)