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