checkQueue() {
        if (this.reset < 0) {
            this.reset = 100;
        }
        if (this.ratelimiter.global) {
            this.resetTimeout = setTimeout(() => this.resetRemaining(), this.ratelimiter.globalReset);
            return;
        }
        if (this.remaining === 0) {
            if (!this.resetTimeout) {
                this.resetTimeout = setTimeout(() => this.resetRemaining(), this.reset);
            }
        }
        if (this.fnQueue.length > 0 && this.remaining !== 0) {
            let queuedFunc = this.fnQueue.splice(0, 1)[0];
            queuedFunc.callback();
            this.checkQueue();
        }
    }
/**
     * Check if there are any functions in the queue that haven't been executed yet
     * @protected
     */
Check if there are any functions in the queue that haven't been executed yet
@protected
Check if there are any functions in the queue that haven ' t been executed yet @protected
checkQueue() {
        if (this.reset < 0) {
            this.reset = 100;
        }
        if (this.ratelimiter.global) {
            this.resetTimeout = setTimeout(() => this.resetRemaining(), this.ratelimiter.globalReset);
            return;
        }
        if (this.remaining === 0) {
            if (!this.resetTimeout) {
                this.resetTimeout = setTimeout(() => this.resetRemaining(), this.reset);
            }
        }
        if (this.fnQueue.length > 0 && this.remaining !== 0) {
            let queuedFunc = this.fnQueue.splice(0, 1)[0];
            queuedFunc.callback();
            this.checkQueue();
        }
    }
checkQueue ( ) { if ( this . reset < 0 ) { this . reset = 100 ; } if ( this . ratelimiter . global ) { this . resetTimeout = setTimeout ( ( ) => this . resetRemaining ( ) , this . ratelimiter . globalReset ) ; return ; } if ( this . remaining === 0 ) { if ( ! this . resetTimeout ) { this . resetTimeout = setTimeout ( ( ) => this . resetRemaining ( ) , this . reset ) ; } } if ( this . fnQueue . length > 0 && this . remaining !== 0 ) { let queuedFunc = this . fnQueue . splice ( 0 , 1 ) [ 0 ] ; queuedFunc . callback ( ) ; this . checkQueue ( ) ; } }
Check if there are any functions in the queue that haven't been executed yet
 @protected
Check if there are any functions in the queue that haven ' t been executed yet @protected