Skip to content

TextInputComponentOptions

typedef · SourceType: BaseMessageComponentOptions

Properties

customId

optional

customId: string

A unique string to be sent in the interaction when submitted

label

optional

label: string

The text to be displayed above this text input component

maxLength

optional

maxLength: number

Maximum length of text that can be entered

minLength

optional

minLength: number

Minimum length of text required to be entered

placeholder

optional

placeholder: string

Custom placeholder text to display when no text is entered

required

optional

required: boolean

Whether or not this text input component is required

style

optional

style: TextInputStyleResolvable

The style of this text input component

value

optional

value: string

Value of this text input component

Unofficial software. Not affiliated with or supported by Discord.