xernerx 4.4.2 → 4.4.4

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.
@@ -99,7 +99,7 @@ export default class SlashCommandBuilder {
99
99
  addSubcommands(method, subcommands) {
100
100
  for (const subcommand of subcommands) {
101
101
  let sub = new SlashCommandSubcommandBuilder().setName(subcommand.name).setDescription(subcommand.description);
102
- if (subcommand.args?.length > 0) this.addArguments(sub, subcommand.args);
102
+ if (subcommand.args && subcommand?.args?.length > 0) this.addArguments(sub, subcommand.args);
103
103
  method.addSubcommand(sub);
104
104
  }
105
105
  }
@@ -204,7 +204,7 @@ export interface SlashCommandArgumentOptions {
204
204
  export interface SlashCommandSubcommandOptions {
205
205
  name: string;
206
206
  description: string;
207
- args: Array<SlashCommandArgumentOptions>;
207
+ args?: Array<SlashCommandArgumentOptions>;
208
208
  }
209
209
  export interface SlashCommandGroupOptions {
210
210
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xernerx",
3
- "version": "4.4.2",
3
+ "version": "4.4.4",
4
4
  "description": "A bot framework for discord.js.",
5
5
  "main": "dist/main.js",
6
6
  "type": "module",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "dbl-sdk": "^1.2.0",
40
- "discord.js": "^14.9.0",
40
+ "discord.js": "^14.11.0",
41
41
  "dumfunctions": "^2.1.2",
42
42
  "xernerx-extension-builder": "^0.0.16",
43
43
  "zod": "^3.21.4"