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