eximiabots-radiox/src/client/events/uncaughtException.ts
2023-06-06 03:41:04 +03:00

11 lines
326 B
TypeScript

import RadioClient from "../../Client";
export default function uncaughtException(client: RadioClient, error: Error) {
client.funcs.logger("Error");
console.log(error.stack);
console.log('');
if(error.name == "DiscordAPIError" && error.message == "Unknown interaction") return;
process.emit('SIGINT');
}