Skip to main content

InputTextComponent

@discordeno/botDocs


Documentation / @discordeno/bot / InputTextComponent

Interface: InputTextComponent

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

Properties

customId

customId: string

The customId of the InputText

Defined in

packages/types/dist/types/discordeno.d.ts:205


label

label: string

The label of the InputText. Maximum 45 characters

Defined in

packages/types/dist/types/discordeno.d.ts:207


maxLength?

optional maxLength: number

The maximum length of the text the user has to provide

Defined in

packages/types/dist/types/discordeno.d.ts:213


minLength?

optional minLength: number

The minimum length of the text the user has to provide

Defined in

packages/types/dist/types/discordeno.d.ts:211


placeholder?

optional placeholder: string

The placeholder of the InputText

Defined in

packages/types/dist/types/discordeno.d.ts:209


required?

optional required: boolean

Whether or not this input is required.

Defined in

packages/types/dist/types/discordeno.d.ts:215


style

style: TextStyles

The style of the InputText

Defined in

packages/types/dist/types/discordeno.d.ts:203


type

type: InputText

InputText Component is of type 4

Defined in

packages/types/dist/types/discordeno.d.ts:201


value?

optional value: string

Pre-filled value for input text.

Defined in

packages/types/dist/types/discordeno.d.ts:217