mirror of
				https://github.com/warengroup/eximiabots-radiox.git
				synced 2025-11-04 03:49:33 +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');
 | 
						|
}
 |