This mixin holds symbols that can be shared in slash subcommands.
Name | Constraints | Optional | Default | Description |
---|---|---|---|---|
TypeAfterAddingSubcommands | SharedSlashCommandSubcommands<TypeAfterAddingSubcommands> | No | The type this class should return after adding a subcommand or subcommand group. |
Adds a new subcommand to this command.
Name | Type | Optional | Description |
---|---|---|---|
input | SlashCommandSubcommandBuilder | ((subcommandGroup: SlashCommandSubcommandBuilder) => SlashCommandSubcommandBuilder) | No | A function that returns a subcommand builder or an already built builder |
Adds a new subcommand group to this command.
Name | Type | Optional | Description |
---|---|---|---|
input | SlashCommandSubcommandGroupBuilder | ((subcommandGroup: SlashCommandSubcommandGroupBuilder) => SlashCommandSubcommandGroupBuilder) | No | A function that returns a subcommand group builder or an already built builder |