oopscord.js 0.0.7 → 0.0.8

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.
@@ -91,7 +91,7 @@ class DiscordApp {
91
91
  const command = commands.find(c => Reflect.getMetadata(Constants_1.COMMAND_NAME_KEY, c) == commandName);
92
92
  if (!command)
93
93
  return;
94
- if (itr.options.getSubcommandGroup()) {
94
+ if (itr.options.getSubcommandGroup(false)) {
95
95
  let handler = Reflect.getMetadata(Constants_1.COMMAND_SUBCOMMAND_GROUPS_KEY, command)[itr.options.getSubcommandGroup(true)]?.find(c => Reflect.getMetadata(Constants_1.COMMAND_NAME_KEY, c) == itr.options.getSubcommand(true));
96
96
  if (!handler)
97
97
  return;
@@ -107,7 +107,7 @@ class DiscordApp {
107
107
  let cmd = new handler(...args);
108
108
  cmd[runMethod]();
109
109
  }
110
- else if (itr.options.getSubcommand()) {
110
+ else if (itr.options.getSubcommand(false)) {
111
111
  let handler = Reflect.getMetadata(Constants_1.COMMAND_SUBCOMMANDS_KEY, command).find(c => Reflect.getMetadata(Constants_1.COMMAND_NAME_KEY, c) == itr.options.getSubcommand(true));
112
112
  if (!handler)
113
113
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oopscord.js",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "An easy way to make discord apps in typescript.",
5
5
  "main": "dist",
6
6
  "scripts": {