mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
docs: ignore docs of unexported functions (#8051)
This commit is contained in:
@@ -9,6 +9,7 @@ const messages = new Map();
|
|||||||
* 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
|
* @param {Error} Base Base error to extend
|
||||||
* @returns {DiscordjsError}
|
* @returns {DiscordjsError}
|
||||||
|
* @ignore
|
||||||
*/
|
*/
|
||||||
function makeDiscordjsError(Base) {
|
function makeDiscordjsError(Base) {
|
||||||
return class DiscordjsError extends Base {
|
return class DiscordjsError extends Base {
|
||||||
@@ -33,6 +34,7 @@ function makeDiscordjsError(Base) {
|
|||||||
* @param {string} key Error key
|
* @param {string} key Error key
|
||||||
* @param {Array<*>} args Arguments to pass for util format or as function args
|
* @param {Array<*>} args Arguments to pass for util format or as function args
|
||||||
* @returns {string} Formatted string
|
* @returns {string} Formatted string
|
||||||
|
* @ignore
|
||||||
*/
|
*/
|
||||||
function message(key, args) {
|
function message(key, args) {
|
||||||
if (typeof key !== 'string') throw new Error('Error message key must be a string');
|
if (typeof key !== 'string') throw new Error('Error message key must be a string');
|
||||||
@@ -48,6 +50,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 {string} sym Unique name for the error
|
||||||
* @param {*} val Value of the error
|
* @param {*} val Value of the error
|
||||||
|
* @ignore
|
||||||
*/
|
*/
|
||||||
function register(sym, val) {
|
function register(sym, val) {
|
||||||
messages.set(sym, typeof val === 'function' ? val : String(val));
|
messages.set(sym, typeof val === 'function' ? val : String(val));
|
||||||
|
|||||||
Reference in New Issue
Block a user