From 811dfe7d432a364e72914adbef460fe37f81f9f2 Mon Sep 17 00:00:00 2001 From: Navy Date: Fri, 11 Jun 2021 22:15:15 +0300 Subject: [PATCH] bugfix --- structure/client/DiscordClient.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}`); } }