Haha-Yes/listeners/UnhandledRejection.js

16 lines
307 B
JavaScript
Raw Normal View History

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