Files
discord.js-selfbot/src/client/websocket/handlers/INTERACTION_FAILURE.js

19 lines
509 B
JavaScript
Raw Normal View History

'use strict';
const { Events } = require('../../../util/Constants');
module.exports = (client, { d: data }) => {
2022-06-13 23:53:43 +07:00
/**
* Emitted whenever client user send interaction and error
2022-06-14 08:48:06 +07:00
* @event Client#interactionFailure
2022-06-13 23:53:43 +07:00
* @param {InteractionResponseBody} data data
*/
2022-06-14 08:48:06 +07:00
client.emit(Events.INTERACTION_FAILURE, data);
client.emit('interactionResponse', {
status: false,
metadata: data,
error: 'No response from bot',
});
2022-10-09 19:37:04 +07:00
// Delete cache
client._interactionCache.delete(data.nonce);
};