mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-23 17:45:03 +00:00
renamed ErisError to DiscordJSError, use rateLimit event instead of debug, renamed the TOKEN variable back
This commit is contained in:
parent
941f362ab1
commit
736cb3a9af
2 changed files with 8 additions and 13 deletions
|
@ -1,16 +0,0 @@
|
|||
import util from "util";
|
||||
|
||||
export class ErisError extends Error {
|
||||
code: number | string | undefined;
|
||||
shardId: number;
|
||||
|
||||
constructor(message: string, code: number | string | undefined, shardId: number) {
|
||||
super(message);
|
||||
this.code = code;
|
||||
this.shardId = shardId;
|
||||
}
|
||||
|
||||
[util.inspect.custom]() {
|
||||
return `[ERIS] [ERROR CODE ${this.code || "?"}] [SHARD ${this.shardId}] ${this.message}`;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue