Skip to main content
Latest
interface DiscordInputTextComponent
import { type DiscordInputTextComponent } from "https://deno.land/x/discordeno@18.0.1/mod.ts";

Properties

type: MessageComponentTypes.InputText

InputText Component is of type 3

style: TextStyles

The style of the InputText

optional
required: boolean

whether this component is required to be filled, default true

custom_id: string

The customId of the InputText

label: string

The label of the InputText (max 45 characters)

optional
placeholder: string

The placeholder of the InputText

optional
min_length: number

The minimum length of the text the user has to provide

optional
max_length: number

The maximum length of the text the user has to provide

optional
value: string

Pre-filled value for input text.