TextInputComponent
Documentation / @discordeno/types / TextInputComponent
Interface: TextInputComponent
Defined in: discordeno/components.ts:160
https://docs.discord.com/developers/components/reference#text-input-text-input-structure
Extends
Properties
customId
customId:
string
Defined in: discordeno/components.ts:164
The customId of the InputText
id?
optionalid?:number
Defined in: discordeno/components.ts:42
32 bit integer used as an optional identifier for component
Inherited from
label?
optionallabel?:string
Defined in: discordeno/components.ts:175
The label of the InputText.
Remarks
Maximum 45 characters
Deprecated
Use the label and description from the LabelComponent
maxLength?
optionalmaxLength?:number
Defined in: discordeno/components.ts:179
The maximum length of the text the user has to provide
minLength?
optionalminLength?:number
Defined in: discordeno/components.ts:177
The minimum length of the text the user has to provide
placeholder?
optionalplaceholder?:string
Defined in: discordeno/components.ts:185
The placeholder of the InputText
required?
optionalrequired?:boolean
Defined in: discordeno/components.ts:181
Whether or not this input is required.
style
style:
TextStyles
Defined in: discordeno/components.ts:166
The style of the InputText
type
type:
TextInput
Defined in: discordeno/components.ts:161
The type of the component
Overrides
value?
optionalvalue?:string
Defined in: discordeno/components.ts:183
Pre-filled value for input text.