reciple 3.1.0 → 3.1.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.
@@ -192,7 +192,7 @@ class RecipleClient extends discord_js_1.Client {
192
192
  return;
193
193
  if (command.validateOptions) {
194
194
  if (commandOptions.some(o => o.invalid)) {
195
- if (!(command === null || command === void 0 ? void 0 : command.halt) || !(yield command.halt({ executeData, reason: commands_1.RecipleHaltedCommandReason.InvalidArguments, invalidArguments: new MessageCommandOptionManager_1.MessageCommandOptionManager(executeData.options.filter(o => o.invalid)) }))) {
195
+ if (!(yield this._haltCommand(command, { executeData, reason: commands_1.RecipleHaltedCommandReason.InvalidArguments, invalidArguments: new MessageCommandOptionManager_1.MessageCommandOptionManager(executeData.options.filter(o => o.invalid)) }))) {
196
196
  message.reply(this.getMessage('invalidArguments', 'Invalid argument(s) given.')).catch(er => this._replyError(er));
197
197
  }
198
198
  return;
@@ -348,12 +348,12 @@ class RecipleClient extends discord_js_1.Client {
348
348
  return (_a = (command.halt
349
349
  ? yield (command.builder == builders_1.RecipleCommandBuilderType.InteractionCommand
350
350
  ? Promise.resolve(command.halt(haltData))
351
- : Promise.resolve(command.halt(haltData))).catch(() => false)
351
+ : Promise.resolve(command.halt(haltData))).catch(err => { throw err; })
352
352
  : false)) !== null && _a !== void 0 ? _a : false;
353
353
  }
354
354
  catch (err) {
355
355
  if (this.isClientLogsEnabled()) {
356
- this.logger.error(`Halt command "${command.name}" execute error`);
356
+ this.logger.error(`An error occured executing command halt for "${command.name}"`);
357
357
  this.logger.error(err);
358
358
  }
359
359
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reciple",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "bin": "bin/bin.js",
5
5
  "license": "GPL-3.0",
6
6
  "main": "bin/index.js",