16 lines
No EOL
307 B
JavaScript
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; |