Skip to main content

TextInputComponent

@discordeno/bot


Documentation / @discordeno/bot / TextInputComponent

Interface: TextInputComponent

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

https://discord.com/developers/docs/components/reference#text-input-text-input-structure

Extends

Properties

customId

customId: string

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

The customId of the InputText


id?

optional id: number

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

32 bit integer used as an optional identifier for component

Inherited from

BaseComponent.id


label

label: string

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

The label of the InputText. Maximum 45 characters


maxLength?

optional maxLength: number

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

The maximum length of the text the user has to provide


minLength?

optional minLength: number

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

The minimum length of the text the user has to provide


placeholder?

optional placeholder: string

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

The placeholder of the InputText


required?

optional required: boolean

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

Whether or not this input is required.


style

style: TextStyles

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

The style of the InputText


type

type: TextInput

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

The type of the component

Overrides

BaseComponent.type


value?

optional value: string

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

Pre-filled value for input text.