Commit 0094c0eb authored by nanahira's avatar nanahira

make initialize sync

parent 16a4b413
......@@ -311,7 +311,7 @@ export function KoishiPlugin<T = any>(
});
}
async _initializePluginClass() {
_initializePluginClass() {
this._handleServiceProvide(true);
this._handleSystemInjections();
this._handleServiceInjections();
......@@ -334,7 +334,7 @@ export function KoishiPlugin<T = any>(
this.__ctx = ctx;
this.__config = config;
this.__pluginOptions = options;
this._initializePluginClass().then();
this._initializePluginClass();
}
};
if (options.name) {
......
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