docs: Typos, consistency and grammar fixes (#6811)

This commit is contained in:
Jiralite
2021-10-13 11:20:44 +01:00
committed by GitHub
parent 046f44b807
commit c44ea50157
42 changed files with 81 additions and 80 deletions

View File

@@ -218,7 +218,7 @@ class Client extends BaseClient {
}
/**
* Logs the client in, establishing a websocket connection to Discord.
* Logs the client in, establishing a WebSocket connection to Discord.
* @param {string} [token=this.token] Token of the account to log in with
* @returns {Promise<string>} Token of the account used
* @example

View File

@@ -15,7 +15,7 @@ class WebhookClient extends BaseClient {
* @typedef {Object} WebhookClientData
* @property {Snowflake} [id] The id of the webhook
* @property {string} [token] The token of the webhook
* @property {string} [url] The full url for the webhook client
* @property {string} [url] The full URL for the webhook client
*/
/**

View File

@@ -743,7 +743,7 @@ class WebSocketShard extends EventEmitter {
this.sessionId = null;
}
// Step 6: reset the ratelimit data
// Step 6: reset the rate limit data
this.ratelimit.remaining = this.ratelimit.total;
this.ratelimit.queue.length = 0;
if (this.ratelimit.timer) {