Improve docs a bit

This commit is contained in:
Crawl
2017-04-30 04:30:44 +02:00
parent 3f8c0a4d11
commit ac92d2cecc
83 changed files with 716 additions and 711 deletions

View File

@@ -1,5 +1,5 @@
/**
* Represents an error from the Discord API
* Represents an error from the Discord API.
*/
class DiscordAPIError extends Error {
constructor(error) {
@@ -16,7 +16,7 @@ class DiscordAPIError extends Error {
}
/**
* Flattens an errors object returned from the API into an array
* Flattens an errors object returned from the API into an array.
* @param {Object} obj Discord errors object
* @param {string} [key] idklol
* @returns {string[]}