Skip to content

Commit 507f8c1

Browse files
committed
✨ loadAll
1 parent f494cca commit 507f8c1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/classes/ModuleLoader.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ export default class DiscordModuleLoader {
5858
client.on("interactionCreate", int => this.handleInteraction(int));
5959
}
6060

61+
async loadAll() {
62+
await this.loadCommands();
63+
await this.loadEvents();
64+
await this.loadModules();
65+
await this.loadGuilds();
66+
}
67+
6168
async loadGuilds(dir = "guilds") {
6269
dir = resolve(dir);
6370
if (!existsSync(dir)) return [];

0 commit comments

Comments
 (0)