mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 13:02:38 +00:00
update docs for discord api error (#1575)
* aaaaa * Update DiscordAPIError.js
This commit is contained in:
parent
cada8763a9
commit
602fe06f88
1 changed files with 2 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
/**
|
||||
* Represents an error from the Discord API.
|
||||
* @extends Error
|
||||
*/
|
||||
class DiscordAPIError extends Error {
|
||||
constructor(error) {
|
||||
|
|
@ -20,6 +21,7 @@ class DiscordAPIError extends Error {
|
|||
* @param {Object} obj Discord errors object
|
||||
* @param {string} [key] Used internally to determine key names of nested fields
|
||||
* @returns {string[]}
|
||||
* @private
|
||||
*/
|
||||
static flattenErrors(obj, key = '') {
|
||||
let messages = [];
|
||||
|
|
|
|||
Loading…
Reference in a new issue