DiscordInputTextComponent
@discordeno/bot • Docs
Documentation / @discordeno/bot / DiscordInputTextComponent
Interface: DiscordInputTextComponent
https://discord.com/developers/docs/interactions/message-components#text-inputs-text-input-structure
Properties
custom_id
custom_id:
string
The customId of the InputText
Defined in
packages/types/dist/types/discord.d.ts:1726
label
label:
string
The label of the InputText (max 45 characters)
Defined in
packages/types/dist/types/discord.d.ts:1728
max_length?
optional
max_length:number
The maximum length of the text the user has to provide
Defined in
packages/types/dist/types/discord.d.ts:1734
min_length?
optional
min_length:number
The minimum length of the text the user has to provide
Defined in
packages/types/dist/types/discord.d.ts:1732
placeholder?
optional
placeholder:string
The placeholder of the InputText
Defined in
packages/types/dist/types/discord.d.ts:1730
required?
optional
required:boolean
whether this component is required to be filled, default true
Defined in
packages/types/dist/types/discord.d.ts:1724
style
style:
TextStyles
The style of the InputText
Defined in
packages/types/dist/types/discord.d.ts:1722
type
type:
InputText
InputText Component is of type 3
Defined in
packages/types/dist/types/discord.d.ts:1720
value?
optional
value:string
Pre-filled value for input text.
Defined in
packages/types/dist/types/discord.d.ts:1736