From 3e609fc2550a6b20e3a59a5e0cd4ad0785046b32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Thu, 21 Dec 2023 01:42:36 +0200 Subject: [PATCH] Ignore unknown interaction in uncaughtException.ts --- src/client/events/uncaughtException.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/client/events/uncaughtException.ts b/src/client/events/uncaughtException.ts index 78c1002..de55efa 100644 --- a/src/client/events/uncaughtException.ts +++ b/src/client/events/uncaughtException.ts @@ -5,7 +5,6 @@ export default function uncaughtException(client: RadioClient, error: Error) { console.log(error.stack); console.log(''); - console.log(error.name + "/" + error.message); - if(error.name == "DiscordAPIError" && error.message == "Unknown interaction") return; + if(error.name == "DiscordAPIError[10062]" && error.message == "Unknown interaction") return; process.emit('SIGINT'); }