ModalSubmitFieldsResolver
classe · Source
A resolver for modal submit interaction text inputs.
Properties
components
components: Array<PartialModalActionRow>
The components within the modal Source
_fields
_fields: Array<PartialInputTextData>
The extracted fields from the modal Source
Methods
getField
getField(customId: string): PartialInputTextData
Gets a field given a custom id from a component Parameters
| Name | Type | Description |
|---|---|---|
customId | string | The custom id of the component |
Returns: PartialInputTextDataSource
getTextInputValue
getTextInputValue(customId: string): string
Gets the value of a text input component given a custom id Parameters
| Name | Type | Description |
|---|---|---|
customId | string | The custom id of the text input component |
Returns: stringSource