woomy-v2/bot/events/error.js

10 lines
232 B
JavaScript
Raw Normal View History

2020-08-18 04:58:36 +00:00
module.exports = class {
2020-10-18 00:58:58 +00:00
constructor (client) {
this.client = client;
}
2020-08-18 04:58:36 +00:00
2020-10-18 00:58:58 +00:00
async run (error) {
this.client.logger.log(`An error event was sent by Discord.js: \n${JSON.stringify(error)}`, 'error');
}
2020-08-18 04:58:36 +00:00
};