diff --git a/packages/ws/src/ws/WebSocketShard.ts b/packages/ws/src/ws/WebSocketShard.ts index 11e6ebba2..5cdd15a33 100644 --- a/packages/ws/src/ws/WebSocketShard.ts +++ b/packages/ws/src/ws/WebSocketShard.ts @@ -358,6 +358,10 @@ export class WebSocketShard extends AsyncEventEmitter { } private async identify() { + this.debug(['Waiting for identify throttle']); + + await this.strategy.waitForIdentify(); + this.debug([ 'Identifying', `shard id: ${this.id.toString()}`, @@ -366,8 +370,6 @@ export class WebSocketShard extends AsyncEventEmitter { `compression: ${this.inflate ? 'zlib-stream' : this.useIdentifyCompress ? 'identify' : 'none'}`, ]); - await this.strategy.waitForIdentify(); - const d: GatewayIdentifyData = { token: this.strategy.options.token, properties: this.strategy.options.identifyProperties,