Skip to main content
Module

x/discord_api_types/v10.ts>APITextInputComponent

Up to date Discord API Typings, versioned by the API version
Go to Latest
interface APITextInputComponent
implements APIBaseComponent<ComponentType.TextInput>
import { type APITextInputComponent } from "https://deno.land/x/discord_api_types@0.37.11/v10.ts";

Properties

One of text input styles

custom_id: string

The custom id for the text input

label: string

Text that appears on top of the text input field, max 80 characters

optional
placeholder: string

Placeholder for the text input

optional
value: string

The pre-filled text in the text input

optional
min_length: number

Minimal length of text input

optional
max_length: number

Maximal length of text input

optional
required: boolean

Whether or not this text input is required or not