Commit 127ae6ea authored by nanahira's avatar nanahira

fix

parent 3882b603
......@@ -208,7 +208,7 @@ export function KoishiPlugin<T = any>(
}
break;
case 'plugin':
const pluginDesc: KoishiModulePlugin<any> = await this[methodKey];
const pluginDesc: KoishiModulePlugin<any> = await this[methodKey]();
if (!pluginDesc || !pluginDesc.plugin) {
throw new Error(`Invalid plugin from method ${methodKey}.`);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment