mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 12:33:30 +01:00
fix: instantiate constructors before using those properties
This commit is contained in:
@@ -44,6 +44,12 @@ class WebSocketConnection extends EventEmitter {
|
|||||||
*/
|
*/
|
||||||
this.sequence = -1;
|
this.sequence = -1;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The current sessionID of the WebSocket
|
||||||
|
* @type {string}
|
||||||
|
*/
|
||||||
|
this.sessionID = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The current status of the client
|
* The current status of the client
|
||||||
* @type {number}
|
* @type {number}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ class RequestHandler {
|
|||||||
this.limit = Infinity;
|
this.limit = Infinity;
|
||||||
this.resetTime = null;
|
this.resetTime = null;
|
||||||
this.remaining = 1;
|
this.remaining = 1;
|
||||||
|
this.busy = false;
|
||||||
this.queue = [];
|
this.queue = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user