Interface ApplicationCommandOptionBase<T>

interface ApplicationCommandOptionBase<T> {
    description: string;
    descriptionLocalizations?: Partial<Record<Locale, string>>;
    descriptionLocalized?: string;
    name: string;
    nameLocalizations?: Partial<Record<Locale, string>>;
    nameLocalized?: string;
    required?: T extends SUB_COMMAND | SUB_COMMAND_GROUP
        ? never
        : boolean;
    type: T;
}

Type Parameters

Hierarchy (view full)

Properties

description: string
descriptionLocalizations?: Partial<Record<Locale, string>>
descriptionLocalized?: string

The description of this application command in the requested locale. This cannot be sent.

name: string
nameLocalizations?: Partial<Record<Locale, string>>
nameLocalized?: string

The description of this application command in the requested locale. This cannot be sent.

required?: T extends SUB_COMMAND | SUB_COMMAND_GROUP
    ? never
    : boolean
type: T