mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
update docs for discord api error (#1575)
* aaaaa * Update DiscordAPIError.js
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* Represents an error from the Discord API.
|
* Represents an error from the Discord API.
|
||||||
|
* @extends Error
|
||||||
*/
|
*/
|
||||||
class DiscordAPIError extends Error {
|
class DiscordAPIError extends Error {
|
||||||
constructor(error) {
|
constructor(error) {
|
||||||
@@ -20,6 +21,7 @@ class DiscordAPIError extends Error {
|
|||||||
* @param {Object} obj Discord errors object
|
* @param {Object} obj Discord errors object
|
||||||
* @param {string} [key] Used internally to determine key names of nested fields
|
* @param {string} [key] Used internally to determine key names of nested fields
|
||||||
* @returns {string[]}
|
* @returns {string[]}
|
||||||
|
* @private
|
||||||
*/
|
*/
|
||||||
static flattenErrors(obj, key = '') {
|
static flattenErrors(obj, key = '') {
|
||||||
let messages = [];
|
let messages = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user