diff --git a/structure/client/DiscordClient.js b/structure/client/DiscordClient.js index 00648e3..db1cf0d 100644 --- a/structure/client/DiscordClient.js +++ b/structure/client/DiscordClient.js @@ -76,7 +76,7 @@ class DiscordClient extends Client { this.logger.info(`Took ${Date.now()-beforeTime}ms to build the client.`); process.on("unhandledRejection", (error) => { - this.client.logger.error(`Unhandled Promise Rejection:\n${error.stack || error}`); + this.logger.error(`Unhandled Promise Rejection:\n${error.stack || error}`); }); this._built = true; @@ -106,7 +106,7 @@ class DiscordClient extends Client { // eslint-disable-next-line no-eval template = eval(template); } catch(error) { - this.client.logger.error(`Error in locale ${language}:${index} while executing code.\n${error.stack || error}`); + this.logger.error(`Error in locale ${language}:${index} while executing code.\n${error.stack || error}`); } }