node_modules/@discordjs/builders/dist/interactions/slashCommands/SlashCommandBuilder.js
/**
     * Adds a new subcommand to this command
     * @param input A function that returns a subcommand builder, or an already built builder
     */
Adds a new subcommand to this command
@param input A function that returns a subcommand builder, or an already built builder
Adds a new subcommand to this command @param input A function that returns a subcommand builder or an already built builder
addSubcommand(input) {
        const { options } = this;
        Assertions_1.validateMaxOptionsLength(options);
        const result = typeof input === 'function' ? input(new SlashCommandSubcommands_1.SlashCommandSubcommandBuilder()) : input;
        Assertions_1.assertReturnOfBuilder(result, SlashCommandSubcommands_1.SlashCommandSubcommandBuilder);
        options.push(result);
        return this;
    }
addSubcommand ( input ) { const { options } = this ; Assertions_1 . validateMaxOptionsLength ( options ) ; const result = typeof input === 'function' ? input ( new SlashCommandSubcommands_1 . SlashCommandSubcommandBuilder ( ) ) : input ; Assertions_1 . assertReturnOfBuilder ( result , SlashCommandSubcommands_1 . SlashCommandSubcommandBuilder ) ; options . push ( result ) ; return this ; }
Adds a new subcommand to this command
 @param input A function that returns a subcommand builder, or an already built builder
Adds a new subcommand to this command @param input A function that returns a subcommand builder or an already built builder
// First, assert options conditions - we cannot have more than 25 options // Get the final result // Push it