Skip to content
This repository has been archived by the owner on Aug 27, 2018. It is now read-only.

Commit

Permalink
Docs build: ce01b45
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberiumShadow committed Sep 4, 2017
1 parent ce01b45 commit f76f969
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions docs/classes_loader.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ <h1><a href="index.html" class="link">Komada</a></h1>
*/
loadNewFunction(file, dir) {
this[file.split(".")[0]] = require(join(dir, file));
delete require.cache[join(dir, file)];
}

/**
Expand Down Expand Up @@ -259,7 +258,6 @@ <h1><a href="index.html" class="link">Komada</a></h1>
cmd.conf.aliases = cmd.conf.aliases || [];
cmd.conf.aliases.forEach(alias => this.client.aliases.set(alias, cmd.help.name));
cmd.usage = new ParsedUsage(this.client, cmd);
delete require.cache[join(dir, ...file)];
}

/**
Expand Down Expand Up @@ -318,7 +316,6 @@ <h1><a href="index.html" class="link">Komada</a></h1>
*/
loadNewInhibitor(file, dir) {
this.client.commandInhibitors.set(file.split(".")[0], require(join(dir, file)));
delete require.cache[join(dir, file)];
}

/**
Expand Down Expand Up @@ -372,7 +369,6 @@ <h1><a href="index.html" class="link">Komada</a></h1>
*/
loadNewFinalizer(file, dir) {
this.client.commandFinalizers.set(file.split(".")[0], require(join(dir, file)));
delete require.cache[join(dir, file)];
}

/**
Expand Down Expand Up @@ -424,7 +420,6 @@ <h1><a href="index.html" class="link">Komada</a></h1>
const eventName = file.split(".")[0];
this.client.eventHandlers.set(eventName, (...args) => require(join(dir, file)).run(this.client, ...args));
this.client.on(eventName, this.client.eventHandlers.get(eventName));
delete require.cache[join(dir, file)];
}

/**
Expand Down Expand Up @@ -474,7 +469,6 @@ <h1><a href="index.html" class="link">Komada</a></h1>
*/
loadNewMessageMonitor(file, dir) {
this.client.messageMonitors.set(file.split(".")[0], require(join(dir, file)));
delete require.cache[join(dir, file)];
}

/**
Expand Down Expand Up @@ -523,7 +517,6 @@ <h1><a href="index.html" class="link">Komada</a></h1>
*/
loadNewProvider(file, dir) {
this.client.providers.set(file.split(".")[0], require(join(dir, file)));
delete require.cache[join(dir, file)];
}

/**
Expand Down Expand Up @@ -591,7 +584,6 @@ <h1><a href="index.html" class="link">Komada</a></h1>
extendable.conf.appliesTo.forEach((structure) => {
Object.defineProperty(!extendable.conf.komada ? Discord[structure].prototype : require("komada")[structure].prototype, extendable.conf.method, myExtend); // eslint-disable-line
});
delete require.cache[join(dir, file)];
}


Expand All @@ -617,6 +609,8 @@ <h1><a href="index.html" class="link">Komada</a></h1>
} else {
throw `\`\`\`${error.stack || error}\`\`\``;
}
} finally {
files.forEach(file => delete require.cache[join(dir, ...file)]);
}
}

Expand Down

0 comments on commit f76f969

Please sign in to comment.