16 lines
354 B
JavaScript
16 lines
354 B
JavaScript
|
const { Listener } = require('discord-akairo');
|
||
|
|
||
|
class unhandledRejectionListener extends Listener {
|
||
|
constructor() {
|
||
|
super('uncaughtException', {
|
||
|
emitter: 'process',
|
||
|
event: 'uncaughtException'
|
||
|
});
|
||
|
}
|
||
|
|
||
|
async exec(error) {
|
||
|
return console.error(`\x1b[31mUncaughtException: ${error}\x1b[37m`);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = unhandledRejectionListener;
|