Ignore unknown interaction in uncaughtException.ts

This commit is contained in:
Christer Warén 2023-12-21 01:42:36 +02:00
parent 0ff7fbef8d
commit 3e609fc255

View File

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