From 96b94beafa6dbd575b01f55807c89b55a8a2b182 Mon Sep 17 00:00:00 2001 From: rhearmas <34490428+qu-ota@users.noreply.github.com> Date: Wed, 11 Dec 2019 10:45:45 -0500 Subject: [PATCH] fixed functions module --- modules/functions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/functions.js b/modules/functions.js index 4881d32..752efe9 100644 --- a/modules/functions.js +++ b/modules/functions.js @@ -87,8 +87,8 @@ module.exports = (client) => { if (command.shutdown) { await command.shutdown(client); } - const mod = require.cache[require.resolve(`../${command.help.category}/${command.help.name}`)]; - delete require.cache[require.resolve(`../${command.help.category}/${command.help.name}.js`)]; + const mod = require.cache[require.resolve(`../commands/${command.help.category}/${command.help.name}`)]; + delete require.cache[require.resolve(`../commands/${command.help.category}/${command.help.name}.js`)]; for (let i = 0; i < mod.parent.children.length; i++) { if (mod.parent.children[i] === mod) { mod.parent.children.splice(i, 1);