Skip to main content

DiscordInputTextComponent

@discordeno/bot


Documentation / @discordeno/bot / DiscordInputTextComponent

Interface: DiscordInputTextComponent

Defined in: packages/types/dist/types/discord.d.ts:1721

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

Properties

custom_id

custom_id: string

Defined in: packages/types/dist/types/discord.d.ts:1729

The customId of the InputText


label

label: string

Defined in: packages/types/dist/types/discord.d.ts:1731

The label of the InputText (max 45 characters)


max_length?

optional max_length: number

Defined in: packages/types/dist/types/discord.d.ts:1737

The maximum length of the text the user has to provide


min_length?

optional min_length: number

Defined in: packages/types/dist/types/discord.d.ts:1735

The minimum length of the text the user has to provide


placeholder?

optional placeholder: string

Defined in: packages/types/dist/types/discord.d.ts:1733

The placeholder of the InputText


required?

optional required: boolean

Defined in: packages/types/dist/types/discord.d.ts:1727

whether this component is required to be filled, default true


style

style: TextStyles

Defined in: packages/types/dist/types/discord.d.ts:1725

The style of the InputText


type

type: InputText

Defined in: packages/types/dist/types/discord.d.ts:1723

InputText Component is of type 3


value?

optional value: string

Defined in: packages/types/dist/types/discord.d.ts:1739

Pre-filled value for input text.