mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +01:00
chore(ws): correct order for debug logs when identifying (#9248)
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -358,6 +358,10 @@ export class WebSocketShard extends AsyncEventEmitter<WebSocketShardEventsMap> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private async identify() {
|
private async identify() {
|
||||||
|
this.debug(['Waiting for identify throttle']);
|
||||||
|
|
||||||
|
await this.strategy.waitForIdentify();
|
||||||
|
|
||||||
this.debug([
|
this.debug([
|
||||||
'Identifying',
|
'Identifying',
|
||||||
`shard id: ${this.id.toString()}`,
|
`shard id: ${this.id.toString()}`,
|
||||||
@@ -366,8 +370,6 @@ export class WebSocketShard extends AsyncEventEmitter<WebSocketShardEventsMap> {
|
|||||||
`compression: ${this.inflate ? 'zlib-stream' : this.useIdentifyCompress ? 'identify' : 'none'}`,
|
`compression: ${this.inflate ? 'zlib-stream' : this.useIdentifyCompress ? 'identify' : 'none'}`,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
await this.strategy.waitForIdentify();
|
|
||||||
|
|
||||||
const d: GatewayIdentifyData = {
|
const d: GatewayIdentifyData = {
|
||||||
token: this.strategy.options.token,
|
token: this.strategy.options.token,
|
||||||
properties: this.strategy.options.identifyProperties,
|
properties: this.strategy.options.identifyProperties,
|
||||||
|
|||||||
Reference in New Issue
Block a user