From 11f7239c7d7ec575d167c9cfcdf170422d3f44bc Mon Sep 17 00:00:00 2001 From: March 7th <71698422+aiko-chan-ai@users.noreply.github.com> Date: Tue, 13 Dec 2022 15:32:05 +0700 Subject: [PATCH] fix: return full log --- src/client/websocket/handlers/INTERACTION_FAILURE.js | 2 +- src/client/websocket/handlers/INTERACTION_SUCCESS.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/websocket/handlers/INTERACTION_FAILURE.js b/src/client/websocket/handlers/INTERACTION_FAILURE.js index 1365e3d..ebd6701 100644 --- a/src/client/websocket/handlers/INTERACTION_FAILURE.js +++ b/src/client/websocket/handlers/INTERACTION_FAILURE.js @@ -10,7 +10,7 @@ module.exports = (client, { d: data }) => { client.emit(Events.INTERACTION_FAILURE, data); client.emit('interactionResponse', { status: false, - metadata: data, + metadata: client._interactionCache.get(data.nonce), error: 'No response from bot', }); // Delete cache diff --git a/src/client/websocket/handlers/INTERACTION_SUCCESS.js b/src/client/websocket/handlers/INTERACTION_SUCCESS.js index 43c0a4c..ff6fe44 100644 --- a/src/client/websocket/handlers/INTERACTION_SUCCESS.js +++ b/src/client/websocket/handlers/INTERACTION_SUCCESS.js @@ -23,7 +23,7 @@ module.exports = (client, { d: data }) => { client.emit('interactionResponse', { status: true, metadata: data_, - error: '', + error: 'Success', }); // Delete cache // client._interactionCache.delete(data.nonce);