mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2025-07-01 19:43:39 +00:00
TypeScript Initial
This commit is contained in:
11
src/client/events/uncaughtException.ts
Normal file
11
src/client/events/uncaughtException.ts
Normal file
@ -0,0 +1,11 @@
|
||||
module.exports = {
|
||||
name: 'uncaughtException',
|
||||
execute(client, error) {
|
||||
client.funcs.logger("Error");
|
||||
console.log(error.stack);
|
||||
console.log('');
|
||||
|
||||
if(error.name == "DiscordAPIError" && error.message == "Unknown interaction") return;
|
||||
process.emit('SIGINT');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user