Update uncaughtException event

This commit is contained in:
Christer Warén 2023-12-17 07:17:26 +02:00
parent bda70e7cf7
commit 22c45cb590

View File

@ -5,6 +5,7 @@ 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;
process.emit('SIGINT');
}