interface APIApplicationCommandStringOptionBase {
    description: string;
    description_localizations?: null | Partial<Record<Locale, null | string>>;
    max_length?: number;
    min_length?: number;
    name: string;
    name_localizations?: null | Partial<Record<Locale, null | string>>;
    required?: boolean;
    type: String;
}

Hierarchy (View Summary)

Properties

description: string
description_localizations?: null | Partial<Record<Locale, null | string>>
max_length?: number

For option type STRING, the maximum allowed length (minimum of 1, maximum of 6000).

min_length?: number

For option type STRING, the minimum allowed length (minimum of 0, maximum of 6000).

name: string
name_localizations?: null | Partial<Record<Locale, null | string>>
required?: boolean
type: String