Search...

SlashCommandSubcommandBuilder

A builder that creates API-compatible JSON data for slash command subcommands.
export declare class SlashCommandSubcommandBuilder implements ToAPIApplicationCommandOptions 
export declare class SlashCommandSubcommandBuilder implements ToAPIApplicationCommandOptions 
Readonly

description

:

string

The description of this subcommand.
Readonly

name

:

string

The name of this subcommand.
The options within this subcommand.
Serializes this builder to API-compatible JSON data.
Remarks
This method runs validations on the data before serializing it. As such, it may throw an error if the data is invalid.