Interface ApplicationCommandOptionsChoice<T>

interface ApplicationCommandOptionsChoice<T> {
    name: string;
    nameLocalizations?: Partial<Record<Locale, string>>;
    value: T extends STRING
        ? string
        : T extends INTEGER | NUMBER
            ? number
            : unknown;
}

Type Parameters

Properties

name: string
nameLocalizations?: Partial<Record<Locale, string>>
value: T extends STRING
    ? string
    : T extends INTEGER | NUMBER
        ? number
        : unknown