Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/denocordts/src/types/mod.ts>APITextInputComponent

An Object Oriented Discord API wrapper for Deno.
Latest
interface APITextInputComponent
implements APIBaseComponent<ComponentType.TextInput>
import { type APITextInputComponent } from "https://deno.land/x/denocordts@1.2.0/src/types/mod.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