xernerx 0.1.120-beta.45 → 0.1.120-beta.46

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/dist/main.cjs CHANGED
@@ -67,7 +67,7 @@ var XernerxInfo = class extends XernerxBase {
67
67
 
68
68
  // package.json
69
69
  var package_default = {
70
- version: "0.1.120-beta.45"};
70
+ version: "0.1.120-beta.46"};
71
71
 
72
72
  // src/tools/XernerxInitial.ts
73
73
  var XernerxInitial = class extends XernerxBase {
@@ -958,6 +958,7 @@ var XernerxSlashCommandInteractionEvent = class extends XernerxEventBuilder {
958
958
  await command.exec({ interaction, ...options, command });
959
959
  await this.client.emit("commandFinish", interaction, options, command);
960
960
  } catch (error) {
961
+ await command.error({ interaction, ...options, command, error });
961
962
  await this.client.emit("commandError", interaction, options, command, error);
962
963
  }
963
964
  });
@@ -1474,6 +1475,8 @@ var XernerxSlashCommandBuilder = class extends XernerxBaseBuilder {
1474
1475
  async exec(args) {
1475
1476
  new XernerxWarn(`${this.id} has no exec function, command will not respond.`);
1476
1477
  }
1478
+ async error(args) {
1479
+ }
1477
1480
  addArguments(command, args) {
1478
1481
  for (const argument of args) {
1479
1482
  let slashCommandArgumentType = `${argument.type.charAt(0).toUpperCase()}${argument.type.slice(1).toLowerCase()}`;