Search...

SlashCommandSubcommandGroupBuilder

Represents a folder for subcommandsFor more information, go to https://discord.com/developers/docs/interactions/application-commands#subcommands-and-subcommand-groups
declare class SlashCommandSubcommandGroupBuilder implements ToAPIApplicationCommandOptions 
declare class SlashCommandSubcommandGroupBuilder implements ToAPIApplicationCommandOptions 
Readonly

description

:

string

The description of this subcommand group
Readonly

name

:

string

The name of this subcommand group
The subcommands part of this subcommand group

addSubcommand(input)

:

this

Adds a new subcommand to this group
NameTypeOptionalDescription
inputSlashCommandSubcommandBuilder | ((subcommandGroup: SlashCommandSubcommandBuilder) => SlashCommandSubcommandBuilder)NoA function that returns a subcommand builder, or an already built builder