Haha-Yes/listeners/UnhandledRejection.js
2019-01-02 08:09:45 +01:00

16 lines
No EOL
307 B
JavaScript

const { Listener } = require('discord-akairo');
class UnhandledRejectionListener extends Listener {
constructor() {
super('unhandledRejection', {
eventName: 'unhandledRejection',
emitter: 'process'
});
}
exec(error) {
console.error(error);
}
}
module.exports = UnhandledRejectionListener;