mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2025-07-01 19:43:39 +00:00
Simplify events
This commit is contained in:
@ -1,13 +1,10 @@
|
||||
import RadioClient from "../../Client";
|
||||
|
||||
export default {
|
||||
name: 'uncaughtException',
|
||||
execute(client: RadioClient, error: any) {
|
||||
client.funcs.logger("Error");
|
||||
console.log(error.stack);
|
||||
console.log('');
|
||||
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');
|
||||
}
|
||||
if(error.name == "DiscordAPIError" && error.message == "Unknown interaction") return;
|
||||
process.emit('SIGINT');
|
||||
}
|
||||
|
Reference in New Issue
Block a user