mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2025-05-06 10:35:00 +00:00
11 lines
333 B
TypeScript
11 lines
333 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[10062]" && error.message == "Unknown interaction") return;
|
|
process.emit('SIGINT');
|
|
}
|