mirror of
https://github.com/danbulant/discord.js
synced 2026-06-09 17:52:55 +00:00
fix: instantiate constructors before using those properties
This commit is contained in:
parent
41a1dee533
commit
92e2c3c7fd
2 changed files with 7 additions and 1 deletions
|
|
@ -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 = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue