woomy-v2/bot/events/error.js
2020-10-18 11:58:58 +11:00

9 lines
232 B
JavaScript

module.exports = class {
constructor (client) {
this.client = client;
}
async run (error) {
this.client.logger.log(`An error event was sent by Discord.js: \n${JSON.stringify(error)}`, 'error');
}
};