diff --git a/discord.wsrewrite.js b/discord.wsrewrite.js index d4c3f972..f0826a62 100644 --- a/discord.wsrewrite.js +++ b/discord.wsrewrite.js @@ -15967,37 +15967,37 @@ class WebSocketConnection extends EventEmitter { constructor(manager, gateway) { super(); /** - * The WebSocket Manager of this connection + * WebSocket Manager of this connection * @type {WebSocketManager} */ this.manager = manager; /** - * The client this belongs to + * Client this belongs to * @type {Client} */ this.client = manager.client; /** - * The WebSocket connection itself + * WebSocket connection itself * @type {WebSocket} */ this.ws = null; /** - * The current sequence of the WebSocket + * Current sequence of the WebSocket * @type {number} */ this.sequence = -1; /** - * The current status of the client + * Current status of the client * @type {number} */ this.status = Constants.Status.IDLE; /** - * The packet manager of the connection + * Packet Manager of the connection * @type {WebSocketPacketManager} */ this.packetManager = new PacketManager(this); /** - * The last time a ping was sent + * Last time a ping was sent (a timestamp) * @type {number} */ this.pingSendTime = 0; @@ -16052,7 +16052,7 @@ class WebSocketConnection extends EventEmitter { // Util /** * Emits a debug message - * @param {string} message the debug message + * @param {string} message Debug message * @returns {void} */ debug(message) { @@ -16062,7 +16062,7 @@ class WebSocketConnection extends EventEmitter { /** * Attempts to serialise data from the WebSocket - * @param {string|Object} data the data to unpack + * @param {string|Object} data Data to unpack * @returns {Object} */ unpack(data) { @@ -16077,7 +16077,7 @@ class WebSocketConnection extends EventEmitter { /** * Packs an object ready to be sent - * @param {Object} data the data to pack + * @param {Object} data Data to pack * @returns {string|Buffer} */ pack(data) { @@ -16106,7 +16106,7 @@ class WebSocketConnection extends EventEmitter { /** * Sends data, bypassing the queue - * @param {Object} data The packet to send + * @param {Object} data Packet to send * @returns {void} */ _send(data) { @@ -16118,7 +16118,7 @@ class WebSocketConnection extends EventEmitter { /** * Adds data to the queue to be sent - * @param {Object} data The packet to send + * @param {Object} data Packet to send * @returns {void} */ send(data) { @@ -16131,7 +16131,7 @@ class WebSocketConnection extends EventEmitter { /** * Creates a connection to a gateway - * @param {string} gateway the gateway to connect to + * @param {string} gateway Gateway to connect to * @param {number} [after=0] How long to wait before connecting * @param {boolean} [force=false] Whether or not to force a new connection even if one already exists * @returns {boolean} @@ -16169,7 +16169,7 @@ class WebSocketConnection extends EventEmitter { /** * Called whenever a message is received - * @param {Event} event The event received + * @param {Event} event Event received * @returns {boolean} */ onMessage(event) { @@ -16184,7 +16184,7 @@ class WebSocketConnection extends EventEmitter { /** * Sets the current sequence of the connection - * @param {number} s The new sequence + * @param {number} s New sequence */ setSequence(s) { this.sequence = s > this.sequence ? s : this.sequence; @@ -16192,7 +16192,7 @@ class WebSocketConnection extends EventEmitter { /** * Called whenever a packet is received - * @param {Object} packet The received packet + * @param {Object} packet received packet * @returns {boolean} */ onPacket(packet) { @@ -16220,7 +16220,7 @@ class WebSocketConnection extends EventEmitter { /** * Called whenever a connection is opened to the gateway - * @param {Event} event The received open event + * @param {Event} event Received open event */ onOpen(event) { this.gateway = event.target.url; @@ -16237,7 +16237,7 @@ class WebSocketConnection extends EventEmitter { /** * Called whenever an error occurs with the WebSocket - * @param {Error} error The error + * @param {Error} error Error that occurred */ onError(error) { this.debug(error); @@ -16245,7 +16245,7 @@ class WebSocketConnection extends EventEmitter { /** * Called whenever a connection to the gateway is closed - * @param {CloseEvent} event The close event + * @param {CloseEvent} event Close event that was received */ onClose(event) { this.debug(`Closed: ${event.code}`); @@ -24773,14 +24773,14 @@ const PacketManager = __webpack_require__(66); const WebSocketConnection = __webpack_require__(65); /** - * The WebSocket Manager of the Client + * WebSocket Manager of the Client * @private */ class WebSocketManager extends EventEmitter { constructor(client) { super(); /** - * The Client that instantiated this WebSocketManager + * Client that instantiated this WebSocketManager * @type {Client} */ this.client = client; @@ -24792,13 +24792,13 @@ class WebSocketManager extends EventEmitter { this.packetManager = new PacketManager(this); /** - * The status of the WebSocketManager, a type of Constants.Status. It defaults to IDLE. + * Status of the WebSocketManager, a type of Constants.Status. It defaults to IDLE. * @type {number} */ this.status = Constants.Status.IDLE; /** - * The WebSocket connection of this manager + * WebSocket connection of this manager * @type {?WebSocketConnection} */ this.connection = null; @@ -24815,7 +24815,7 @@ class WebSocketManager extends EventEmitter { /** * Emits a debug event - * @param {string} message The debug message + * @param {string} message Debug message * @returns {void} */ debug(message) { @@ -24833,7 +24833,7 @@ class WebSocketManager extends EventEmitter { /** * Send a packet on the available WebSocket - * @param {Object} packet The packet to send + * @param {Object} packet Packet to send * @returns {void} */ send(packet) { @@ -24843,7 +24843,7 @@ class WebSocketManager extends EventEmitter { /** * Connects the client to a gateway - * @param {string} gateway The gateway to connect to + * @param {string} gateway Gateway to connect to * @returns {boolean} */ connect(gateway) {