SharedSlashCommandSubcommands

export declare class SharedSlashCommandSubcommands<TypeAfterAddingSubcommands extends SharedSlashCommandSubcommands<TypeAfterAddingSubcommands>>
export declare class SharedSlashCommandSubcommands<TypeAfterAddingSubcommands extends SharedSlashCommandSubcommands<TypeAfterAddingSubcommands>>
This mixin holds symbols that can be shared in slash subcommands.
NameConstraintsOptionalDefaultDescription
TypeAfterAddingSubcommandsSharedSlashCommandSubcommands<TypeAfterAddingSubcommands>NoThe type this class should return after adding a subcommand or subcommand group.
addSubcommand(input):TypeAfterAddingSubcommands
Adds a new subcommand to this command.
NameTypeOptionalDescription
inputSlashCommandSubcommandBuilder | ((subcommandGroup: SlashCommandSubcommandBuilder) => SlashCommandSubcommandBuilder)NoA function that returns a subcommand builder or an already built builder
addSubcommandGroup(input):TypeAfterAddingSubcommands
Adds a new subcommand group to this command.
NameTypeOptionalDescription
inputSlashCommandSubcommandGroupBuilder | ((subcommandGroup: SlashCommandSubcommandGroupBuilder) => SlashCommandSubcommandGroupBuilder)NoA function that returns a subcommand group builder or an already built builder