From 7c2666951e8806007785307ee6b831880a1f63d3 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sat, 31 May 2025 21:03:17 +0000 Subject: [PATCH] fix: wonky error handling --- backend/src/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/src/index.ts b/backend/src/index.ts index 8b1ad4f2..6f8c526e 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -277,6 +277,10 @@ connect().then(async () => { }); client.on("error", (err) => { + if (err instanceof PluginLoadError) { + errorHandler(err); + return; + } errorHandler(new DiscordJSError(err.message, (err as any).code, 0)); });