Update WebSocketShard.js
This commit is contained in:
		@@ -538,8 +538,7 @@ class WebSocketShard extends EventEmitter {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    const { waitGuildTimeout } = this.manager.client.options;
 | 
					    const { waitGuildTimeout } = this.manager.client.options;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    this.readyTimeout = setTimeout(
 | 
					    this.readyTimeout = setTimeout(() => {
 | 
				
			||||||
      () => {
 | 
					 | 
				
			||||||
      this.debug(
 | 
					      this.debug(
 | 
				
			||||||
        `Shard ${hasGuildsIntent ? 'did' : 'will'} not receive any more guild packets` +
 | 
					        `Shard ${hasGuildsIntent ? 'did' : 'will'} not receive any more guild packets` +
 | 
				
			||||||
          `${hasGuildsIntent ? ` in ${waitGuildTimeout} ms` : ''}.\nUnavailable guild count: ${
 | 
					          `${hasGuildsIntent ? ` in ${waitGuildTimeout} ms` : ''}.\nUnavailable guild count: ${
 | 
				
			||||||
@@ -553,9 +552,7 @@ class WebSocketShard extends EventEmitter {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      this.emit(ShardEvents.ALL_READY, this.expectedGuilds);
 | 
					      this.emit(ShardEvents.ALL_READY, this.expectedGuilds);
 | 
				
			||||||
      // }, hasGuildsIntent && waitGuildTimeout).unref();
 | 
					      // }, hasGuildsIntent && waitGuildTimeout).unref();
 | 
				
			||||||
      },
 | 
					    }, waitGuildTimeout).unref();
 | 
				
			||||||
      this.expectedGuilds.size == 0 ? 1 : waitGuildTimeout,
 | 
					 | 
				
			||||||
    ).unref();
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /**
 | 
					  /**
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user