Commit 6472baff authored by nanahira's avatar nanahira

register after init at last

parent 931a2c5a
......@@ -304,11 +304,11 @@ export function KoishiPlugin<T = any>(
this._handleServiceProvide(true);
this._handleSystemInjections();
this._handleServiceInjections();
this._registerAfterInit();
await this._registerDeclarations();
if (typeof this.onApply === 'function') {
await this.onApply();
}
this._registerAfterInit();
}
constructor(...args: any[]) {
......
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