mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2025-04-19 13:24:47 +00:00
11 lines
326 B
TypeScript
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');
|
|
}
|