xernerx 4.8.0 → 4.8.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.
@@ -238,7 +238,7 @@ export default class CommandHandler extends Handler {
238
238
  return;
239
239
  if (!cmd)
240
240
  return await this.client.emit('commandNotFound', message, commandName, filetype);
241
- await this.client.emit('commandStart', message, cmd, filetype);
241
+ await this.client.emit('commandStart', message, cmd);
242
242
  const args = await messageArguments(message, cmd, commandPrefix);
243
243
  message.util.parsed = {
244
244
  alias: commandAlias,
@@ -270,10 +270,10 @@ export default class CommandHandler extends Handler {
270
270
  resolve(true);
271
271
  })
272
272
  .then(async () => {
273
- await this.client.emit('commandStart', interaction, filetype);
273
+ await this.client.emit('commandStart', interaction);
274
274
  const args = await interactionArguments(interaction, cmd);
275
275
  interaction.util.parsed = {
276
- alias: interaction.commandName + (args.group || '') + (args.subcommand || ''),
276
+ alias: [interaction.commandName, args.group || '', args.subcommand || ''].join(' '),
277
277
  args: args.args,
278
278
  };
279
279
  cmd.util = interaction.util;
@@ -292,7 +292,7 @@ export default class CommandHandler extends Handler {
292
292
  cmd = this.client.commands.context.get(interaction.commandName);
293
293
  if (!cmd)
294
294
  return this.client.emit('commandNotFound', interaction, interaction.commandName, filetype);
295
- await this.client.emit('commandStart', interaction, filetype);
295
+ await this.client.emit('commandStart', interaction);
296
296
  const args = await interactionArguments(interaction, cmd);
297
297
  interaction.util.parsed = {
298
298
  alias: interaction.commandName,
@@ -321,7 +321,7 @@ export default class CommandHandler extends Handler {
321
321
  return;
322
322
  await cmd.exec(event, args);
323
323
  await inhibitorValidation(event, args, cmd, 'post');
324
- return await this.client.emit('commandFinish', event, type);
324
+ return await this.client.emit('commandFinish', event, cmd);
325
325
  }
326
326
  catch (error) {
327
327
  new XernerxLog(this.client).error(`An error occurred executing ${Style.log(cmd.name, { color: Style.TextColor.Blue })}`, error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xernerx",
3
- "version": "4.8.0",
3
+ "version": "4.8.1",
4
4
  "description": "A bot framework for discord.js.",
5
5
  "main": "dist/main.js",
6
6
  "type": "module",