We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f494cca commit 507f8c1Copy full SHA for 507f8c1
src/classes/ModuleLoader.ts
@@ -58,6 +58,13 @@ export default class DiscordModuleLoader {
58
client.on("interactionCreate", int => this.handleInteraction(int));
59
}
60
61
+ async loadAll() {
62
+ await this.loadCommands();
63
+ await this.loadEvents();
64
+ await this.loadModules();
65
+ await this.loadGuilds();
66
+ }
67
+
68
async loadGuilds(dir = "guilds") {
69
dir = resolve(dir);
70
if (!existsSync(dir)) return [];
0 commit comments