xernerx 2.6.4 → 2.6.7

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/main.js CHANGED
@@ -41,6 +41,8 @@ const exp = {
41
41
  }
42
42
 
43
43
  for (const [key, val] of Object.entries(Discord)) {
44
+ if (key == 'version') continue;
45
+
44
46
  exp[key] = val;
45
47
  }
46
48
 
@@ -52,14 +52,14 @@ class BuildInInteractionEvent extends Event {
52
52
  if (interaction.client.commands.contextMenu.has(interaction.commandName)) {
53
53
  let command = interaction.client.commands.contextMenu.get(interaction.commandName);
54
54
 
55
- if (inhibitorsValidation(interaction, command)) return;
55
+ if (await inhibitorsValidation(interaction, command)) return;
56
56
 
57
57
  await this.defer(interaction, command);
58
58
 
59
59
  command.client = interaction.client;
60
60
 
61
61
  try {
62
- if (command.conditions) return command.conditions(interaction);
62
+ if (await command.conditions(interaction, args)) return;
63
63
 
64
64
  await command.exec(interaction);
65
65
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xernerx",
3
- "version": "2.6.4",
3
+ "version": "2.6.7",
4
4
  "description": "A bot framework for discord.js. [BETA]",
5
5
  "main": "main.js",
6
6
  "scripts": {