class ModalSubmitFields

export class ModalSubmitFields

Represents the serialized fields from a modal submit interaction

components : ActionRowModalData[]

The components within the modal

The extracted fields from the modal


Type extends ComponentType

customId: string
type: Type
) : { type: Type } & TextInputModalData

Gets a field given a custom id from a component

customId: string
) : string

Gets the value of a text input component given a custom id