refactor: cleanup and fmt

This commit is contained in:
Skillz4Killz
2021-04-04 12:54:33 +00:00
committed by GitHub
parent 535f27c734
commit 1b8161e85b
26 changed files with 89 additions and 480 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
import { identify } from "./identify.ts";
import { handleOnMessage } from "./proxy/shard.ts";
import { resume } from "./resume.ts";
import { ws } from "./ws.ts";
@@ -29,7 +28,7 @@ export async function createShard(shardID: number) {
case 4013:
case 4014:
throw new Error(
event.reason || "Discord gave no reason! GG! You broke Discord!"
event.reason || "Discord gave no reason! GG! You broke Discord!",
);
// THESE ERRORS CAN NO BE RESUMED! THEY MUST RE-IDENTIFY!
case 4003: