refactor: don't log about resuming in shard.handleClose (#4187)

This commit is contained in:
Awesome Stickz
2025-05-03 13:37:15 +02:00
committed by GitHub
parent ad72acef44
commit 5ebe549ada
-1
View File
@@ -472,7 +472,6 @@ export class DiscordenoShard {
case GatewayCloseEventCodes.RateLimited:
case GatewayCloseEventCodes.AlreadyAuthenticated:
default: {
this.logger.info(`[Shard] Shard #${this.id} closed with code ${close.code}. Attempting to resume...`)
// We don't want to get into an infinite loop where we resume forever, so if we were already resuming we identify instead
this.state = this.state === ShardState.Resuming ? ShardState.Identifying : ShardState.Resuming
this.events.disconnected?.(this)