SlashCommandSubcommandGroupBuilder
Represents a folder for subcommands.
export declare class SlashCommandSubcommandGroupBuilder implements ToAPIApplicationCommandOptions
export declare class SlashCommandSubcommandGroupBuilder implements ToAPIApplicationCommandOptions
Implements
ToAPIApplicationCommandOptionsReadonly
description
:
string
The description of this subcommand group.
Readonly
name
:
string
The name of this subcommand group.
Readonly
The subcommands within this subcommand group.
addSubcommand(input)
:
this
Adds a new subcommand to this group.
Name | Type | Optional | Description |
---|---|---|---|
input | SlashCommandSubcommandBuilder | ((subcommandGroup: SlashCommandSubcommandBuilder) => SlashCommandSubcommandBuilder) | No | A function that returns a subcommand builder or an already built builder |
Serializes this builder to API-compatible JSON data.