commandkit 0.1.11-dev.20250308122630 → 0.1.11-dev.20250308130523
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -41,9 +41,9 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
41
41
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
42
42
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
43
43
|
|
|
44
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_jiti@1.21.7_postcss@8.
|
|
44
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_jiti@1.21.7_postcss@8.5.3_tsx@4.19.2_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/cjs_shims.js
|
|
45
45
|
var init_cjs_shims = __esm({
|
|
46
|
-
"../../node_modules/.pnpm/tsup@8.4.0_jiti@1.21.7_postcss@8.
|
|
46
|
+
"../../node_modules/.pnpm/tsup@8.4.0_jiti@1.21.7_postcss@8.5.3_tsx@4.19.2_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/cjs_shims.js"() {
|
|
47
47
|
"use strict";
|
|
48
48
|
}
|
|
49
49
|
});
|
|
@@ -4618,8 +4618,15 @@ var init_CommandKit = __esm({
|
|
|
4618
4618
|
await this.loadPlugins();
|
|
4619
4619
|
await __privateMethod(this, _CommandKit_instances, init_fn).call(this);
|
|
4620
4620
|
this.incrementClientListenersCount();
|
|
4621
|
+
if (token !== false && !this.options.client.isReady()) {
|
|
4622
|
+
this.client.once(import_discord12.Events.ClientReady, async () => {
|
|
4623
|
+
await this.commandHandler.registrar.register();
|
|
4624
|
+
});
|
|
4625
|
+
await this.options.client.login(
|
|
4626
|
+
token ?? process.env.TOKEN ?? process.env.DISCORD_TOKEN
|
|
4627
|
+
);
|
|
4628
|
+
}
|
|
4621
4629
|
__privateSet(this, _started, true);
|
|
4622
|
-
await this.commandHandler.registrar.register();
|
|
4623
4630
|
}
|
|
4624
4631
|
/**
|
|
4625
4632
|
* Loads all the plugins.
|
|
@@ -4822,7 +4829,7 @@ var init_version = __esm({
|
|
|
4822
4829
|
"use strict";
|
|
4823
4830
|
init_cjs_shims();
|
|
4824
4831
|
version = /* @__MACRO__ $version */
|
|
4825
|
-
"0.1.11-dev.
|
|
4832
|
+
"0.1.11-dev.20250308130523";
|
|
4826
4833
|
}
|
|
4827
4834
|
});
|
|
4828
4835
|
|