mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +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;
|
||||
|
||||
/**
|
||||
* The current sessionID of the WebSocket
|
||||
* @type {string}
|
||||
*/
|
||||
this.sessionID = null;
|
||||
|
||||
/**
|
||||
* The current status of the client
|
||||
* @type {number}
|
||||
|
||||
@@ -15,7 +15,7 @@ class RequestHandler {
|
||||
this.limit = Infinity;
|
||||
this.resetTime = null;
|
||||
this.remaining = 1;
|
||||
|
||||
this.busy = false;
|
||||
this.queue = [];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user