diff --git a/discord.master.js b/discord.master.js index 9057a7b8..cd9fc16d 100644 --- a/discord.master.js +++ b/discord.master.js @@ -12974,42 +12974,42 @@ class Client extends EventEmitter { this.rest = new RESTManager(this); /** - * The data manager of the Client + * The data manager of the client * @type {ClientDataManager} * @private */ this.dataManager = new ClientDataManager(this); /** - * The manager of the Client + * The manager of the client * @type {ClientManager} * @private */ this.manager = new ClientManager(this); /** - * The WebSocket Manager of the Client + * The WebSocket manager of the client * @type {WebSocketManager} * @private */ this.ws = new WebSocketManager(this); /** - * The Data Resolver of the Client + * The data resolver of the client * @type {ClientDataResolver} * @private */ this.resolver = new ClientDataResolver(this); /** - * The Action Manager of the Client + * The action manager of the client * @type {ActionsManager} * @private */ this.actions = new ActionsManager(this); /** - * The Voice Manager of the Client (`null` in browsers) + * The voice manager of the client (`null` in browsers) * @type {?ClientVoiceManager} * @private */ @@ -13079,8 +13079,25 @@ class Client extends EventEmitter { */ this.pings = []; + /** + * Timestamp of the latest ping's start time + * @type {number} + * @private + */ this._pingTimestamp = 0; + + /** + * Timeouts set by {@link Client#setTimeout} that are still active + * @type {Set} + * @private + */ this._timeouts = new Set(); + + /** + * Intervals set by {@link Client#setInterval} that are still active + * @type {Set} + * @private + */ this._intervals = new Set(); if (this.options.messageSweepInterval > 0) { @@ -13172,7 +13189,7 @@ class Client extends EventEmitter { } /** - * Logs out, terminates the connection to Discord, and destroys the client + * Logs out, terminates the connection to Discord, and destroys the client. * @returns {Promise} */ destroy() { @@ -13322,7 +13339,7 @@ class Client extends EventEmitter { } /** - * Clears a timeout + * Clears a timeout. * @param {Timeout} timeout Timeout to cancel */ clearTimeout(timeout) { @@ -13344,7 +13361,7 @@ class Client extends EventEmitter { } /** - * Clears an interval + * Clears an interval. * @param {Timeout} interval Interval to cancel */ clearInterval(interval) { @@ -13378,7 +13395,8 @@ class Client extends EventEmitter { } /** - * Calls `eval(script)` with the client as `this`. + * Calls {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval} on a script + * with the client as `this`. * @param {string} script Script to eval * @returns {*} * @private @@ -13388,7 +13406,7 @@ class Client extends EventEmitter { } /** - * Validates client options + * Validates the client options. * @param {ClientOptions} [options=this.options] Options to validate * @private */