mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 18:13:29 +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'>;
|
inRawGuild(): this is ModalMessageModalSubmitInteraction<'raw'>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ModalSubmitActionRow {
|
|
||||||
type: ComponentType.ActionRow;
|
|
||||||
components: ActionRow<TextInputComponent>[];
|
|
||||||
}
|
|
||||||
|
|
||||||
export class ModalSubmitInteraction<Cached extends CacheType = CacheType> extends Interaction<Cached> {
|
export class ModalSubmitInteraction<Cached extends CacheType = CacheType> extends Interaction<Cached> {
|
||||||
private constructor(client: Client, data: APIModalSubmitInteraction);
|
private constructor(client: Client, data: APIModalSubmitInteraction);
|
||||||
public readonly customId: string;
|
public readonly customId: string;
|
||||||
// TODO: fix this type when #7517 is implemented
|
public readonly components: ActionRow<ModalActionRowComponent>[];
|
||||||
public readonly components: ModalSubmitActionRow[];
|
|
||||||
public readonly fields: ModalSubmitFieldsResolver;
|
public readonly fields: ModalSubmitFieldsResolver;
|
||||||
public deferred: boolean;
|
public deferred: boolean;
|
||||||
public ephemeral: boolean | null;
|
public ephemeral: boolean | null;
|
||||||
|
|||||||
Reference in New Issue
Block a user