fixed functions module
This commit is contained in:
parent
4730dcffea
commit
96b94beafa
1 changed files with 2 additions and 2 deletions
|
@ -87,8 +87,8 @@ module.exports = (client) => {
|
||||||
if (command.shutdown) {
|
if (command.shutdown) {
|
||||||
await command.shutdown(client);
|
await command.shutdown(client);
|
||||||
}
|
}
|
||||||
const mod = require.cache[require.resolve(`../${command.help.category}/${command.help.name}`)];
|
const mod = require.cache[require.resolve(`../commands/${command.help.category}/${command.help.name}`)];
|
||||||
delete require.cache[require.resolve(`../${command.help.category}/${command.help.name}.js`)];
|
delete require.cache[require.resolve(`../commands/${command.help.category}/${command.help.name}.js`)];
|
||||||
for (let i = 0; i < mod.parent.children.length; i++) {
|
for (let i = 0; i < mod.parent.children.length; i++) {
|
||||||
if (mod.parent.children[i] === mod) {
|
if (mod.parent.children[i] === mod) {
|
||||||
mod.parent.children.splice(i, 1);
|
mod.parent.children.splice(i, 1);
|
||||||
|
|
Loading…
Reference in a new issue