From a97baaa57d813d444f2e5d05fad07cba696ea34b Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 20 Feb 2021 09:48:49 -0500 Subject: [PATCH] Fix --- structures/Client.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/structures/Client.js b/structures/Client.js index e6a794ad..b0155bc3 100644 --- a/structures/Client.js +++ b/structures/Client.js @@ -54,11 +54,11 @@ module.exports = class XiaoClient extends CommandoClient { this.leaveMessages = leaveMsgs; } - async registerFontsIn(path) { - const files = fs.readdirSync(path); + async registerFontsIn(filepath) { + const files = fs.readdirSync(filepath); for (const file of files) { - const metadata = await fontFinder.get(path.join(path, file)); - const font = new Font(path.join(path, file), file, metadata); + const metadata = await fontFinder.get(path.join(filepath, file)); + const font = new Font(path.join(filepath, file), file, metadata); this.fonts.set(file, font); font.register(); }