Interface Subcommandgroup

interface Subcommandgroup {
    description?: string;
    description_localizations?: Partial<Record<Locale, null | string>>;
    name: string;
    name_localizations?: Partial<Record<Locale, null | string>>;
    subcommands: Subcommand[];
}

Hierarchy (View Summary)

Properties

description?: string

The description of the command, subcommand, subcommand group. Required if it's an option. This should be a string that describes what the command does. It can be localized using the description_localizations property.

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

The localizations for the command description. This should be an object where the keys are locale codes and the values are the localized descriptions.

{ "en-US": "This is my command" }
name: string

The name of the command, subcommand, subcommand group, option. This should be a lowercase string with no spaces. It can only contain alphanumeric characters, underscores, and dashes.

name_localizations?: Partial<Record<Locale, null | string>>

The localizations for the command name. This should be an object where the keys are locale codes and the values are the localized names.

{ "en-US": "My Command" }
subcommands: Subcommand[]

The subcommands of the subcommand group. This should be an array of Subcommand objects.