scripts/builders/messageCommandBuilder.js
/**
     * 
     * @param {string} name - Argument lowercase name without special characters and whitespace.
     * @param {boolean} required - Set if the argument is required or not
     * @param {string} description - Description of the argument
     * @param {Object} values - Array of string values
     * @returns 
     */
@param {string} name - Argument lowercase name without special characters and whitespace.
@param {boolean} required - Set if the argument is required or not
@param {string} description - Description of the argument
@param {Object} values - Array of string values
@returns
@param { string } name - Argument lowercase name without special characters and whitespace . @param { boolean } required - Set if the argument is required or not @param { string } description - Description of the argument @param { Object } values - Array of string values @returns
addArgument(name = '', required = false, description = '', values = []) {
        if(!dataTypeValidator.moduleName(name)) throw new TypeError('Invalid argument: Argument `name` must be a lowercase string without special characters and whitespace');
        if(!dataTypeValidator.boolean(required)) throw new TypeError('Invalid argument: `required` must be a boolean');
        if(!dataTypeValidator.arrayDataTypeProperties(values, 'string')) throw new TypeError('Invalid argument: `values` must be an array of strings');
        this.arguments.push({
            name: name,
            required: required,
            description: description,
            values: values
        });
        return this;
    }
addArgument ( name = '' , required = false , description = '' , values = [ ] ) { if ( ! dataTypeValidator . moduleName ( name ) ) throw new TypeError ( 'Invalid argument: Argument `name` must be a lowercase string without special characters and whitespace' ) ; if ( ! dataTypeValidator . boolean ( required ) ) throw new TypeError ( 'Invalid argument: `required` must be a boolean' ) ; if ( ! dataTypeValidator . arrayDataTypeProperties ( values , 'string' ) ) throw new TypeError ( 'Invalid argument: `values` must be an array of strings' ) ; this . arguments . push ( { name : name , required : required , description : description , values : values } ) ; return this ; }
@param {string} name - Argument lowercase name without special characters and whitespace.
@param { string } name - Argument lowercase name without special characters and whitespace .