node_modules/@discordjs/builders/dist/interactions/slashCommands/SlashCommandBuilder.js
/**
     * Returns the final data that should be sent to Discord.
     *
     * **Note:** Calling this function will validate required properties based on their conditions.
     */
Returns the final data that should be sent to Discord.
Note:** Calling this function will validate required properties based on their conditions.
Returns the final data that should be sent to Discord . Note : ** Calling this function will validate required properties based on their conditions .
toJSON() {
        Assertions_1.validateRequiredParameters(this.name, this.description, this.options);
        return {
            name: this.name,
            description: this.description,
            options: this.options.map((option) => option.toJSON()),
            default_permission: this.defaultPermission,
        };
    }
toJSON ( ) { Assertions_1 . validateRequiredParameters ( this . name , this . description , this . options ) ; return { name : this . name , description : this . description , options : this . options . map ( ( option ) => option . toJSON ( ) ) , default_permission : this . defaultPermission , } ; }
Returns the final data that should be sent to Discord.
Returns the final data that should be sent to Discord .