types(ModalSubmitFields): fix fields type (#10816)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Danial Raza
2025-03-30 13:45:37 +02:00
committed by GitHub
parent 646ecae47f
commit 432aba3df7

View File

@@ -2376,7 +2376,7 @@ export interface ActionRowModalData {
export class ModalSubmitFields { export class ModalSubmitFields {
private constructor(components: readonly (readonly ModalActionRowComponent[])[]); private constructor(components: readonly (readonly ModalActionRowComponent[])[]);
public components: ActionRowModalData[]; public components: ActionRowModalData[];
public fields: Collection<string, ModalActionRowComponent>; public fields: Collection<string, TextInputModalData>;
public getField<Type extends ComponentType>(customId: string, type: Type): { type: Type } & TextInputModalData; public getField<Type extends ComponentType>(customId: string, type: Type): { type: Type } & TextInputModalData;
public getField(customId: string, type?: ComponentType): TextInputModalData; public getField(customId: string, type?: ComponentType): TextInputModalData;
public getTextInputValue(customId: string): string; public getTextInputValue(customId: string): string;