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

@@ -57,7 +57,7 @@ class Util extends null {
* Options for splitting a message.
* @typedef {Object} SplitOptions
* @property {number} [maxLength=2000] Maximum character length per message piece
* @property {string|string[]|RegExp|RegExp[]} [char='\n'] Character(s) or Regex(s) to split the message with,
* @property {string|string[]|RegExp|RegExp[]} [char='\n'] Character(s) or Regex(es) to split the message with,
* an array can be used to split multiple times
* @property {string} [prepend=''] Text to prepend to every piece except the first
* @property {string} [append=''] Text to append to every piece except the last
@@ -477,7 +477,7 @@ class Util extends null {
/**
* Sorts by Discord's position and id.
* @param {Collection} collection Collection of objects to sort
* @param {Collection} collection Collection of objects to sort
* @returns {Collection}
*/
static discordSort(collection) {
@@ -522,7 +522,7 @@ class Util extends null {
/**
* Transforms a snowflake from a decimal string to a bit string.
* @param {Snowflake} num Snowflake to be transformed
* @param {Snowflake} num Snowflake to be transformed
* @returns {string}
* @private
*/
@@ -543,7 +543,7 @@ class Util extends null {
/**
* Transforms a snowflake from a bit string to a decimal string.
* @param {string} num Bit string to be transformed
* @param {string} num Bit string to be transformed
* @returns {Snowflake}
* @private
*/
@@ -616,7 +616,7 @@ class Util extends null {
}
/**
* The content to put in a codeblock with all codeblock fences replaced by the equivalent backticks.
* The content to put in a code block with all code block fences replaced by the equivalent backticks.
* @param {string} text The string to be converted
* @returns {string}
*/