eximiabots-radiox/src/client/events/uncaughtException.js
2021-12-11 23:50:13 +02:00

12 lines
311 B
JavaScript

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