Skip to main content

DiscordInputTextComponent

@discordeno/bot


Documentation / @discordeno/bot / DiscordInputTextComponent

Interface: DiscordInputTextComponent

Defined in: packages/types/dist/types/discord/interactions.d.ts:540

https://discord.com/developers/docs/interactions/message-components#text-input-object-text-input-structure

Properties

custom_id

custom_id: string

Defined in: packages/types/dist/types/discord/interactions.d.ts:548

The customId of the InputText


label

label: string

Defined in: packages/types/dist/types/discord/interactions.d.ts:550

The label of the InputText (max 45 characters)


max_length?

optional max_length: number

Defined in: packages/types/dist/types/discord/interactions.d.ts:556

The maximum length of the text the user has to provide


min_length?

optional min_length: number

Defined in: packages/types/dist/types/discord/interactions.d.ts:554

The minimum length of the text the user has to provide


placeholder?

optional placeholder: string

Defined in: packages/types/dist/types/discord/interactions.d.ts:552

The placeholder of the InputText


required?

optional required: boolean

Defined in: packages/types/dist/types/discord/interactions.d.ts:546

whether this component is required to be filled, default true


style

style: TextStyles

Defined in: packages/types/dist/types/discord/interactions.d.ts:544

The style of the InputText


type

type: InputText

Defined in: packages/types/dist/types/discord/interactions.d.ts:542

InputText Component is of type 3


value?

optional value: string

Defined in: packages/types/dist/types/discord/interactions.d.ts:558

Pre-filled value for input text.