registerCommandAlias(alias, label) {
        let caseInsensitiveLabel = false;
        if(!this.commands[label] && !(this.commands[(label = label.toLowerCase())] && (caseInsensitiveLabel = this.commands[label.toLowerCase()].caseInsensitive))) {
            throw new Error("No command registered for " + label);
        }
        alias = caseInsensitiveLabel === true ? alias.toLowerCase() : alias;
        if(this.commandAliases[alias]) {
            throw new Error(`Alias ${alias} already registered`);
        }
        this.commandAliases[alias] = label;
        this.commands[label].aliases.push(alias);
    }
/**
    * Register an alias for a command
    * @arg {String} alias The alias
    * @arg {String} label The original command label
    */
Register an alias for a command
@arg {String} alias The alias
@arg {String} label The original command label
Register an alias for a command @arg { String } alias The alias @arg { String } label The original command label
registerCommandAlias(alias, label) {
        let caseInsensitiveLabel = false;
        if(!this.commands[label] && !(this.commands[(label = label.toLowerCase())] && (caseInsensitiveLabel = this.commands[label.toLowerCase()].caseInsensitive))) {
            throw new Error("No command registered for " + label);
        }
        alias = caseInsensitiveLabel === true ? alias.toLowerCase() : alias;
        if(this.commandAliases[alias]) {
            throw new Error(`Alias ${alias} already registered`);
        }
        this.commandAliases[alias] = label;
        this.commands[label].aliases.push(alias);
    }
registerCommandAlias ( alias , label ) { let caseInsensitiveLabel = false ; if ( ! this . commands [ label ] && ! ( this . commands [ ( label = label . toLowerCase ( ) ) ] && ( caseInsensitiveLabel = this . commands [ label . toLowerCase ( ) ] . caseInsensitive ) ) ) { throw new Error ( "No command registered for " + label ) ; } alias = caseInsensitiveLabel === true ? alias . toLowerCase ( ) : alias ; if ( this . commandAliases [ alias ] ) { throw new Error ( ` ${ alias } ` ) ; } this . commandAliases [ alias ] = label ; this . commands [ label ] . aliases . push ( alias ) ; }
Register an alias for a command
 @arg {String} alias The alias
 @arg {String} label The original command label
Register an alias for a command @arg { String } alias The alias @arg { String } label The original command label