3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-06-15 10:45:01 +00:00

fix: wonky error handling

This commit is contained in:
Dragory 2025-05-31 21:03:17 +00:00
parent b490312ed7
commit 7c2666951e
No known key found for this signature in database

View file

@ -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));
});