reciple 1.1.0 → 1.1.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.
@@ -1,4 +1,4 @@
1
- import { Client, ClientEvents, ClientOptions, Interaction, Message } from 'discord.js';
1
+ import { ApplicationCommandData, Client, ClientEvents, ClientOptions, Interaction, Message } from 'discord.js';
2
2
  import { Logger as LoggerConstructor } from 'fallout-utility';
3
3
  import { MessageCommandBuilder, RecipleMessageCommandExecute } from './builders/MessageCommandBuilder';
4
4
  import { InteractionCommandBuilder, RecipleInteractionCommandExecute } from './builders/InteractionCommandBuilder';
@@ -22,6 +22,7 @@ export interface RecipleClientEvents extends ClientEvents {
22
22
  export declare class RecipleClient extends Client {
23
23
  config?: Config;
24
24
  commands: RecipleClientCommands;
25
+ otherApplicationCommandData: ApplicationCommandData[];
25
26
  modules: RecipleScript[];
26
27
  logger: LoggerConstructor;
27
28
  version: string;
@@ -22,6 +22,7 @@ class RecipleClient extends discord_js_1.Client {
22
22
  constructor(options) {
23
23
  super(options);
24
24
  this.commands = { MESSAGE_COMMANDS: {}, INTERACTION_COMMANDS: {} };
25
+ this.otherApplicationCommandData = [];
25
26
  this.modules = [];
26
27
  this.version = version_1.version;
27
28
  this.logger = (0, logger_1.logger)(!!options.config.fileLogging.stringifyLoggedJSON, !!options.config.fileLogging.debugmode);
@@ -63,7 +64,7 @@ class RecipleClient extends discord_js_1.Client {
63
64
  }
64
65
  this.logger.info(`${this.modules.length} modules loaded.`);
65
66
  if ((_a = this.config) === null || _a === void 0 ? void 0 : _a.commands.interactionCommand.registerCommands)
66
- yield (0, registerInteractionCommands_1.registerInteractionCommands)(this);
67
+ yield (0, registerInteractionCommands_1.registerInteractionCommands)(this, [...Object.values(this.commands.INTERACTION_COMMANDS), ...this.otherApplicationCommandData]);
67
68
  return this;
68
69
  });
69
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reciple",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "A Discord.js bot",
5
5
  "author": "FalloutStudios",
6
6
  "license": "GPL-3.0",