update docs for discord api error (#1575)

* aaaaa

* Update DiscordAPIError.js
This commit is contained in:
Gus Caplan
2017-06-24 17:36:48 -05:00
committed by Amish Shah
parent b5de89a973
commit 85ec7c64bc

View File

@@ -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 = [];