DiscordTextInputComponent
Documentation / @discordeno/types / DiscordTextInputComponent
Interface: DiscordTextInputComponent
Defined in: discord/components.ts:268
https://docs.discord.com/developers/components/reference#text-input-text-input-structure
Extends
Properties
custom_id
custom_id:
string
Defined in: discord/components.ts:272
The customId of the InputText
id?
optionalid?:number
Defined in: discord/components.ts:100
32 bit integer used as an optional identifier for component
Inherited from
label?
optionallabel?:string
Defined in: discord/components.ts:283
The label of the InputText.
Remarks
Maximum 45 characters
Deprecated
Use the label and description from the DiscordLabelComponent
max_length?
optionalmax_length?:number
Defined in: discord/components.ts:287
The maximum length of the text the user has to provide
min_length?
optionalmin_length?:number
Defined in: discord/components.ts:285
The minimum length of the text the user has to provide
placeholder?
optionalplaceholder?:string
Defined in: discord/components.ts:293
The placeholder of the InputText
required?
optionalrequired?:boolean
Defined in: discord/components.ts:289
whether this component is required to be filled, default true
style
style:
TextStyles
Defined in: discord/components.ts:274
The style of the InputText
type
type:
TextInput
Defined in: discord/components.ts:269
The type of the component
Overrides
value?
optionalvalue?:string
Defined in: discord/components.ts:291
Pre-filled value for input text.