temp logging

This commit is contained in:
Erik 2022-07-10 18:13:58 +03:00
parent fff27029e3
commit a2b9714aa5
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -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}`);
}
}