docs(*): add links to Discord's API objects & data (#5862)

This commit is contained in:
Rodry
2021-06-24 09:55:44 +01:00
committed by GitHub
parent 6d3d00b445
commit e0efcc6ab0
35 changed files with 175 additions and 63 deletions

View File

@@ -47,7 +47,7 @@ class DiscordAPIError extends Error {
/**
* Flattens an errors object returned from the API into an array.
* @param {Object} obj Discord errors object
* @param {APIError} obj Discord errors object
* @param {string} [key] Used internally to determine key names of nested fields
* @returns {string[]}
* @private
@@ -75,3 +75,8 @@ class DiscordAPIError extends Error {
}
module.exports = DiscordAPIError;
/**
* @external APIError
* @see {@link https://discord.com/developers/docs/reference#error-messages}
*/