@averagehelper/corde
Version:
A simple library for Discord bot tests. (Republished fork to demonstrate a bugfix)
19 lines (18 loc) • 619 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DiscordError = void 0;
const defaults_1 = require("./defaults");
/**
* Related to a [Discord.js](https://discord.js.org/#/docs/main/stable/general/welcome) error.
*/
class DiscordError extends Error {
/**
* Throws when any type of operation executed by discord.js fails.
* @param message Custom message for this error.
*/
constructor(message = defaults_1.Errors.DISCORD_ERROR_MESSAGE) {
super(message);
this.name = defaults_1.Errors.DISCORD_ERROR;
}
}
exports.DiscordError = DiscordError;