Haha-Yes/listeners/UnhandledRejection.js

16 lines
355 B
JavaScript
Raw Normal View History

2018-12-30 01:20:24 +01:00
const { Listener } = require('discord-akairo');
class UnhandledRejectionListener extends Listener {
constructor() {
super('unhandledRejection', {
eventName: 'unhandledRejection',
emitter: 'process'
});
}
exec(error) {
console.error(error);
}
}
module.exports = UnhandledRejectionListener;