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
ToAPIApplicationCommandOptionsReadonly
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
Name | Type | Optional | Description |
---|---|---|---|
input | SlashCommandSubcommandBuilder | ((subcommandGroup: SlashCommandSubcommandBuilder) => SlashCommandSubcommandBuilder) | No | A function that returns a subcommand builder, or an already built builder |