APITextInputComponent

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

Signature

export interface APITextInputComponent extends APIBaseComponent<ComponentType.TextInput>

Properties

id?: number;
custom_id: string;

The custom id for the text input

placeholder?: string;

Placeholder for the text input

value?: string;

The pre-filled text in the text input

min_length?: number;

Minimal length of text input

max_length?: number;

Maximal length of text input

required?: boolean;

Whether or not this text input is required or not