export class ModalSubmitFields
Represents the serialized fields from a modal submit interaction
Constructors
components: ModalActionRowComponent[][])
constructor(components: ModalActionRowComponent[][]
Constructs a new instance of the ModalSubmitFields
class
ActionRowModalData[] components :
The components within the modal
Collection<string, ModalActionRowComponent> fields :
The extracted fields from the modal
Overload 1
Overload 2
getFieldType extends ComponentType
>(customId: stringtype: Type) : { type: Type } & TextInputModalData <
Type extends ComponentType
customId: string
type: Type
Gets a field given a custom id from a component