Commit 0094c0eb authored by nanahira's avatar nanahira

make initialize sync

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