mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-22 20:53:17 +00:00
Ignore unknown interaction in uncaughtException.ts
This commit is contained in:
parent
0ff7fbef8d
commit
3e609fc255
@ -5,7 +5,6 @@ export default function uncaughtException(client: RadioClient, error: Error) {
|
|||||||
console.log(error.stack);
|
console.log(error.stack);
|
||||||
console.log('');
|
console.log('');
|
||||||
|
|
||||||
console.log(error.name + "/" + error.message);
|
if(error.name == "DiscordAPIError[10062]" && error.message == "Unknown interaction") return;
|
||||||
if(error.name == "DiscordAPIError" && error.message == "Unknown interaction") return;
|
|
||||||
process.emit('SIGINT');
|
process.emit('SIGINT');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user