diff --git a/src/events.js b/src/events.js index bd9c9f6..83780f4 100644 --- a/src/events.js +++ b/src/events.js @@ -31,7 +31,7 @@ module.exports = class Events { args }); } catch (e) { - if (this.client.config.debug) { + if (config.debug) { console.error(`The '${command.name}' command failed.`); console.log(e); }