discord-user-bots
Version:
A library that allows you to use the full potential of Discords API to create and operate powerful user bots
35 lines (30 loc) • 684 B
JavaScript
/**
*
* ## OVERVIEW
*
* Contains all the error classes to be thrown in any of the source files.
*
*/
class DiscordUserBotsError extends Error {
constructor(message) {
super(message);
this.name = "Discord User Bots Error";
}
}
class DiscordAPIError extends Error {
constructor(message) {
super(message);
this.name = "Discord API Error";
}
}
class DiscordUserBotsInternalError extends DiscordUserBotsError {
constructor(message) {
super(message);
this.name = "Discord User Bots Internal Error";
}
}
module.exports = {
DiscordUserBotsInternalError,
DiscordUserBotsError,
DiscordAPIError,
};