Skip to content

ModalSubmitFieldsResolver ​

classe · Source

A resolver for modal submit interaction text inputs.

Properties ​

components ​

components: Array<PartialModalActionRow>

The components within the modal Source

_fields ​

private

_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

NameTypeDescription
customIdstringThe 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

NameTypeDescription
customIdstringThe custom id of the text input component

Returns: stringSource

Unofficial software. Not affiliated with or supported by Discord.