MCPcopy Index your code
hub / github.com/AstrBotDevs/AstrBot / reloadModule

Method reloadModule

dashboard/src/i18n/loader.ts:288–298  ·  view source on GitHub ↗

* 热重载模块

(locale: string, moduleName: string)

Source from the content-addressed store, hash-verified

286 * 热重载模块
287 */
288 async reloadModule(locale: string, moduleName: string): Promise<any> {
289 const cacheKey = `${locale}:${moduleName}`;
290 this.cache.delete(cacheKey);
291
292 const moduleInfo = this.moduleRegistry.get(moduleName);
293 if (moduleInfo) {
294 moduleInfo.loaded = false;
295 }
296
297 return this.loadModule(locale, moduleName);
298 }
299
300
301}

Callers

nothing calls this directly

Calls 3

loadModuleMethod · 0.95
deleteMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected