Skip to content

Commit

Permalink
types(ModalSubmitInteraction): fix components type (#7732)
Browse files Browse the repository at this point in the history
  • Loading branch information
vvito7 committed Apr 12, 2022
1 parent 3582fe9 commit 6f4e97b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/discord.js/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1861,16 +1861,10 @@ export interface ModalMessageModalSubmitInteraction<Cached extends CacheType = C
inRawGuild(): this is ModalMessageModalSubmitInteraction<'raw'>;
}

export interface ModalSubmitActionRow {
type: ComponentType.ActionRow;
components: ActionRow<TextInputComponent>[];
}

export class ModalSubmitInteraction<Cached extends CacheType = CacheType> extends Interaction<Cached> {
private constructor(client: Client, data: APIModalSubmitInteraction);
public readonly customId: string;
// TODO: fix this type when #7517 is implemented
public readonly components: ModalSubmitActionRow[];
public readonly components: ActionRow<ModalActionRowComponent>[];
public readonly fields: ModalSubmitFieldsResolver;
public deferred: boolean;
public ephemeral: boolean | null;
Expand Down

0 comments on commit 6f4e97b

Please sign in to comment.