reciple 5.5.0 → 5.5.1

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.
@@ -73,7 +73,7 @@ class RecipleClient extends discord_js_1.Client {
73
73
  this.modules = this.modules.filter((_r, i) => i.toString() !== m.toString());
74
74
  });
75
75
  }
76
- if (typeof module_.script?.commands !== 'undefined') {
76
+ if (module_.script?.commands && Array.isArray(module_.script?.commands)) {
77
77
  for (const command of module_.script.commands) {
78
78
  this.addCommand(command);
79
79
  }
@@ -81,8 +81,8 @@ class RecipleClient extends discord_js_1.Client {
81
81
  }
82
82
  if (this.isClientLogsEnabled()) {
83
83
  this.logger.info(`${this.modules.length} modules loaded.`);
84
- this.logger.info(`${Object.keys(this.commands.messageCommands).length} message commands loaded.`);
85
- this.logger.info(`${Object.keys(this.commands.slashCommands).length} slash commands loaded.`);
84
+ this.logger.info(`${this.commands.messageCommands.size} message commands loaded.`);
85
+ this.logger.info(`${this.commands.slashCommands.size} slash commands loaded.`);
86
86
  }
87
87
  if (this.config.commands.slashCommand.registerCommands) {
88
88
  await (0, registerApplicationCommands_1.registerApplicationCommands)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reciple",
3
- "version": "5.5.0",
3
+ "version": "5.5.1",
4
4
  "bin": "dist/cjs/bin.js",
5
5
  "license": "GPL-3.0",
6
6
  "main": "dist/cjs/index.js",