MCPcopy Create free account
hub / github.com/GlobalTechInfo/MEGA-MDX / reloadCommands

Method reloadCommands

lib/commandHandler.ts:222–231  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

220 }
221
222 async reloadCommands() {
223 this.commands.clear();
224 this.aliases.clear();
225 this.categories.clear();
226 this.stats.clear();
227 this.cooldowns.clear();
228 this.disabledCommands.clear();
229 this.prefixlessCommands.clear();
230 await this.loadCommands();
231 }
232
233 getCommand(text: string, prefixes: string[]) {
234 const usedPrefix = prefixes.find(p => text.startsWith(p));

Callers 2

handlerFunction · 0.80
handlerFunction · 0.80

Calls 1

loadCommandsMethod · 0.95

Tested by

no test coverage detected