forked from Galactic/galactic-bot
temp logging
This commit is contained in:
parent
fff27029e3
commit
a2b9714aa5
@ -82,7 +82,11 @@ class CommandHandler extends Observer {
|
|||||||
const response = await this._parseInteraction(interaction, command);
|
const response = await this._parseInteraction(interaction, command);
|
||||||
if (await this._parseResponse(invoker, response)) return;
|
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}`);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user