seedcord 0.6.2 → 0.7.0

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.mjs CHANGED
@@ -1250,9 +1250,9 @@ var Bot = class extends Plugin {
1250
1250
  this._client = new Client(core.config.bot.clientOptions);
1251
1251
  this.interactions = new InteractionController(core);
1252
1252
  this.events = new EventController(core);
1253
- this.commands = new CommandRegistry(this.core);
1254
- this.emojiInjector = new EmojiInjector(this.core);
1255
- this.core.shutdown.addTask(ShutdownPhase.DiscordCleanup, "stop-bot", async () => await this.stop());
1253
+ this.commands = new CommandRegistry(core);
1254
+ this.emojiInjector = new EmojiInjector(core);
1255
+ core.shutdown.addTask(ShutdownPhase.DiscordCleanup, "stop-bot", async () => await this.stop());
1256
1256
  }
1257
1257
  /**
1258
1258
  * Initializes Discord client and all controllers
@@ -1263,9 +1263,9 @@ var Bot = class extends Plugin {
1263
1263
  return;
1264
1264
  }
1265
1265
  this.isInitialized = true;
1266
- await this.login();
1267
1266
  await this.interactions.init();
1268
1267
  await this.events.init();
1268
+ await this.login();
1269
1269
  await this.commands.init();
1270
1270
  await this.commands.setCommands();
1271
1271
  await this.emojiInjector.init();