Skip to main content

InputTextComponent

@discordeno/bot


Documentation / @discordeno/bot / InputTextComponent

Interface: InputTextComponent

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

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

Properties

customId

customId: string

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

The customId of the InputText


label

label: string

Defined in: packages/types/dist/types/discordeno.d.ts:219

The label of the InputText. Maximum 45 characters


maxLength?

optional maxLength: number

Defined in: packages/types/dist/types/discordeno.d.ts:225

The maximum length of the text the user has to provide


minLength?

optional minLength: number

Defined in: packages/types/dist/types/discordeno.d.ts:223

The minimum length of the text the user has to provide


placeholder?

optional placeholder: string

Defined in: packages/types/dist/types/discordeno.d.ts:221

The placeholder of the InputText


required?

optional required: boolean

Defined in: packages/types/dist/types/discordeno.d.ts:227

Whether or not this input is required.


style

style: TextStyles

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

The style of the InputText


type

type: InputText

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

InputText Component is of type 4


value?

optional value: string

Defined in: packages/types/dist/types/discordeno.d.ts:229

Pre-filled value for input text.