Discord API-compatible object capable of representing arguments, subcommands, and subgroups. This is the output of Brynjolf's argument translation.

interface ResultOptions {
    _brynjolf_type: string;
    autocomplete?: boolean;
    channel_types?: ChannelType[];
    choices?: {
        [choice: string]: any;
    }[];
    description?: string;
    description_localizations?: Partial<Record<"id" | "en-US" | "en-GB" | "bg" | "zh-CN" | "zh-TW" | "hr" | "cs" | "da" | "nl" | "fi" | "fr" | "de" | "el" | "hi" | "hu" | "it" | "ja" | "ko" | "lt" | "no" | "pl" | "pt-BR" | "ro" | "ru" | "es-ES" | "es-419" | "sv-SE" | "th" | "tr" | "uk" | "vi", null | string>>;
    max_length?: number;
    max_value?: number;
    min_length?: number;
    min_value?: number;
    name?: string;
    name_localizations?: Partial<Record<"id" | "en-US" | "en-GB" | "bg" | "zh-CN" | "zh-TW" | "hr" | "cs" | "da" | "nl" | "fi" | "fr" | "de" | "el" | "hi" | "hu" | "it" | "ja" | "ko" | "lt" | "no" | "pl" | "pt-BR" | "ro" | "ru" | "es-ES" | "es-419" | "sv-SE" | "th" | "tr" | "uk" | "vi", null | string>>;
    options?: ResultOptions[];
    required?: boolean;
    type: ApplicationCommandOptionType;
}

Properties

_brynjolf_type: string

The string name of the argument type, for internal use.

autocomplete?: boolean

Whether to enable argument autocompletion.

channel_types?: ChannelType[]

Possible types allowed in channel arguments.

choices?: {
    [choice: string]: any;
}[]

Map of possible argument value choices.

Type declaration

  • [choice: string]: any
description?: string

Description of the argument.

description_localizations?: Partial<Record<"id" | "en-US" | "en-GB" | "bg" | "zh-CN" | "zh-TW" | "hr" | "cs" | "da" | "nl" | "fi" | "fr" | "de" | "el" | "hi" | "hu" | "it" | "ja" | "ko" | "lt" | "no" | "pl" | "pt-BR" | "ro" | "ru" | "es-ES" | "es-419" | "sv-SE" | "th" | "tr" | "uk" | "vi", null | string>>

Map of locales to localized argument descriptions.

max_length?: number

Maximum string argument length.

max_value?: number

Maximum numeric argument value.

min_length?: number

Minimum string argument length.

min_value?: number

Minimum numeric argument value.

name?: string

Name of the argument.

name_localizations?: Partial<Record<"id" | "en-US" | "en-GB" | "bg" | "zh-CN" | "zh-TW" | "hr" | "cs" | "da" | "nl" | "fi" | "fr" | "de" | "el" | "hi" | "hu" | "it" | "ja" | "ko" | "lt" | "no" | "pl" | "pt-BR" | "ro" | "ru" | "es-ES" | "es-419" | "sv-SE" | "th" | "tr" | "uk" | "vi", null | string>>

Map of locales to localized argument names.

options?: ResultOptions[]

List of subarguments of the subcommand or subgroup.

required?: boolean

Whether the argument is required.

The type of argument.

Generated using TypeDoc