Search...

SlashCommandSubcommandGroupBuilder

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

Implements

ToAPIApplicationCommandOptions
Readonly

description

:

string

The description of this subcommand group
Readonly

name

:

string

The name of this subcommand group
Readonly

options

:

SlashCommandSubcommandBuilder[]

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

toJSON()

:

APIApplicationCommandSubcommandGroupOption