mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
types(ModalSubmitInteraction): fix components type (#7732)
This commit is contained in:
8
packages/discord.js/typings/index.d.ts
vendored
8
packages/discord.js/typings/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user