diff --git a/src/structure/components/observers/CommandHandler.js b/src/structure/components/observers/CommandHandler.js index 2067de9..d4b9499 100644 --- a/src/structure/components/observers/CommandHandler.js +++ b/src/structure/components/observers/CommandHandler.js @@ -82,7 +82,11 @@ class CommandHandler extends Observer { const response = await this._parseInteraction(interaction, command); if (await this._parseResponse(invoker, response)) return; - await this._executeCommand(invoker, response.options); + try { + await this._executeCommand(invoker, response.options); + } catch (err) { + this.logger.error(`_executeCommand errored:\nCommand: ${invoker.command.name}\nOptions:\n${Object.keys(response.options).map((key) => `[${key}: ${response.options[key]._rawValue}]`).join('\n')}\n${err.stack}`); + } }