mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 10:33:30 +01:00
Docs cleanup
This commit is contained in:
@@ -6,7 +6,7 @@ const assert = require('assert');
|
||||
const util = require('util');
|
||||
|
||||
/**
|
||||
* Extend an error of some sort into a DiscordjsError
|
||||
* Extend an error of some sort into a DiscordjsError.
|
||||
* @param {Error} Base Base error to extend
|
||||
* @returns {DiscordjsError}
|
||||
*/
|
||||
@@ -29,7 +29,7 @@ function makeDiscordjsError(Base) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Format the message for an error
|
||||
* Format the message for an error.
|
||||
* @param {string} key Error key
|
||||
* @param {Array<*>} args Arguments to pass for util format or as function args
|
||||
* @returns {string} Formatted string
|
||||
@@ -49,7 +49,7 @@ function message(key, args) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Register an error code and message
|
||||
* Register an error code and message.
|
||||
* @param {string} sym Unique name for the error
|
||||
* @param {*} val Value of the error
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user