From 9e0ead25203a7aa825757694992143b14b8ba5b5 Mon Sep 17 00:00:00 2001 From: Bsian Date: Mon, 23 Dec 2019 23:15:39 +0000 Subject: [PATCH] Failsafe i guess --- src/commands/load.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commands/load.ts b/src/commands/load.ts index 8f55fe5..ec4130d 100644 --- a/src/commands/load.ts +++ b/src/commands/load.ts @@ -29,6 +29,8 @@ export default class Load extends Command { delete require.cache[`${corepath}/class/Util.js`]; } else { try { + delete require.cache[`${corepath}/commands/index.js`]; + delete require.cache[`${corepath}/commands/${args[1]}.js`]; const cmdIndex = require('../commands'); let Cmd = cmdIndex[args[1]]; if (!Cmd) return message.channel.createMessage(`${this.client.stores.emojis.error} ***Could not find file***`);