vimcord 1.0.44 → 1.0.46

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.cjs CHANGED
@@ -1021,7 +1021,7 @@ var VimcordCLI = class _VimcordCLI {
1021
1021
  if (mode === "on") {
1022
1022
  CLI.logger.log(`~ Type ${CLI.options.prefix}help to view available commands`);
1023
1023
  } else {
1024
- CLI.logger.log(`~ [MODE] Now set to "${mode}"`);
1024
+ CLI.logger.log(`~ Updated mode to "${mode}"`);
1025
1025
  }
1026
1026
  }
1027
1027
  rl;
@@ -1787,7 +1787,7 @@ var VimcordErrorHandler = class {
1787
1787
  var import_chalk2 = __toESM(require("chalk"));
1788
1788
 
1789
1789
  // package.json
1790
- var version = "1.0.44";
1790
+ var version = "1.0.45";
1791
1791
 
1792
1792
  // src/client/vimcord.logger.ts
1793
1793
  var clientLoggerFactory = (client) => new Logger({ prefixEmoji: "\u26A1", prefix: `vimcord (i${client.clientId})` }).extend({
@@ -2731,17 +2731,11 @@ var Vimcord = class _Vimcord extends import_discord11.Client {
2731
2731
  this.features = features;
2732
2732
  this.config = defineVimcordConfig(config);
2733
2733
  this.error = new VimcordErrorHandler(this);
2734
- if (this.features.useGlobalErrorHandlers) {
2735
- this.error.setupGlobalHandlers();
2736
- }
2737
2734
  this.status = new StatusManager(this);
2738
2735
  this.events = new EventManager(this);
2739
2736
  this.commands = new CommandManager(this);
2740
2737
  this.once("clientReady", (client) => this.logger.clientReady(client.user.tag, client.guilds.cache.size));
2741
2738
  _Vimcord.instances.set(this.clientId, this);
2742
- if (this.config.app.enableCLI) {
2743
- VimcordCLI.setMode("on");
2744
- }
2745
2739
  }
2746
2740
  /** Builds the client by importing modules and registering builtin handlers. */
2747
2741
  async build() {
@@ -2750,14 +2744,8 @@ var Vimcord = class _Vimcord extends import_discord11.Client {
2750
2744
  this.configure("slashCommands", this.config.slashCommands);
2751
2745
  this.configure("prefixCommands", this.config.prefixCommands);
2752
2746
  this.configure("contextCommands", this.config.contextCommands);
2753
- if (this.features.importModules) {
2754
- const importModules = this.features.importModules;
2755
- await Promise.all([
2756
- importModules.events && this.importModules("events", importModules.events),
2757
- importModules.slashCommands && this.importModules("slashCommands", importModules.slashCommands),
2758
- importModules.prefixCommands && this.importModules("prefixCommands", importModules.prefixCommands),
2759
- importModules.contextCommands && this.importModules("contextCommands", importModules.contextCommands)
2760
- ]);
2747
+ if (this.features.useGlobalErrorHandlers) {
2748
+ this.error.setupGlobalHandlers();
2761
2749
  }
2762
2750
  if (this.features.useDefaultSlashCommandHandler) {
2763
2751
  this.events.register(slashCommandHandler);
@@ -2768,6 +2756,19 @@ var Vimcord = class _Vimcord extends import_discord11.Client {
2768
2756
  if (this.features.useDefaultPrefixCommandHandler) {
2769
2757
  this.events.register(prefixCommandHandler);
2770
2758
  }
2759
+ if (this.features.importModules) {
2760
+ const importModules = this.features.importModules;
2761
+ await Promise.all([
2762
+ importModules.events && this.importModules("events", importModules.events),
2763
+ importModules.slashCommands && this.importModules("slashCommands", importModules.slashCommands),
2764
+ importModules.prefixCommands && this.importModules("prefixCommands", importModules.prefixCommands),
2765
+ importModules.contextCommands && this.importModules("contextCommands", importModules.contextCommands)
2766
+ ]);
2767
+ }
2768
+ this.logger.clientBanner(this);
2769
+ if (this.config.app.enableCLI) {
2770
+ VimcordCLI.setMode("on");
2771
+ }
2771
2772
  return this;
2772
2773
  }
2773
2774
  /** Current app name */
@@ -2880,7 +2881,6 @@ var Vimcord = class _Vimcord extends import_discord11.Client {
2880
2881
  );
2881
2882
  }
2882
2883
  await this.build();
2883
- this.logger.clientBanner(this);
2884
2884
  try {
2885
2885
  const stopLoader = this.logger.loader("Connecting to Discord...");
2886
2886
  const loginResult = await import_qznt4.$.async.retry(() => super.login(token), {