Skip to content

Commit

Permalink
chore: fix components type
Browse files Browse the repository at this point in the history
  • Loading branch information
suneettipirneni committed Feb 9, 2022
1 parent c9f932d commit 46ad3b5
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
8 changes: 7 additions & 1 deletion deno/payloads/v8/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1015,11 +1015,17 @@ export interface APIActionRowComponent extends APIBaseMessageComponent<Component
components: Exclude<APIMessageComponent, APIActionRowComponent>[];
}

export interface ModalSubmitComponent {
type: ComponentType;
custom_id: string;
value: string;
}

export interface APIModalActionRowComponent extends APIBaseMessageComponent<ComponentType.ActionRow> {
/**
* The components in the ActionRow
*/
components: Exclude<APIModalComponent, APIModalActionRowComponent>[];
components: ModalSubmitComponent[];
}

/**
Expand Down
8 changes: 7 additions & 1 deletion deno/payloads/v9/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1180,11 +1180,17 @@ export interface APIActionRowComponent extends APIBaseMessageComponent<Component
components: Exclude<APIMessageComponent, APIActionRowComponent>[];
}

export interface ModalSubmitComponent {
type: ComponentType;
custom_id: string;
value: string;
}

export interface APIModalActionRowComponent extends APIBaseMessageComponent<ComponentType.ActionRow> {
/**
* The components in the ActionRow
*/
components: Exclude<APIModalComponent, APIModalActionRowComponent>[];
components: ModalSubmitComponent[];
}

/**
Expand Down
8 changes: 7 additions & 1 deletion payloads/v8/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1015,11 +1015,17 @@ export interface APIActionRowComponent extends APIBaseMessageComponent<Component
components: Exclude<APIMessageComponent, APIActionRowComponent>[];
}

export interface ModalSubmitComponent {
type: ComponentType;
custom_id: string;
value: string;
}

export interface APIModalActionRowComponent extends APIBaseMessageComponent<ComponentType.ActionRow> {
/**
* The components in the ActionRow
*/
components: Exclude<APIModalComponent, APIModalActionRowComponent>[];
components: ModalSubmitComponent[];
}

/**
Expand Down
8 changes: 7 additions & 1 deletion payloads/v9/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1180,11 +1180,17 @@ export interface APIActionRowComponent extends APIBaseMessageComponent<Component
components: Exclude<APIMessageComponent, APIActionRowComponent>[];
}

export interface ModalSubmitComponent {
type: ComponentType;
custom_id: string;
value: string;
}

export interface APIModalActionRowComponent extends APIBaseMessageComponent<ComponentType.ActionRow> {
/**
* The components in the ActionRow
*/
components: Exclude<APIModalComponent, APIModalActionRowComponent>[];
components: ModalSubmitComponent[];
}

/**
Expand Down

0 comments on commit 46ad3b5

Please sign in to comment.