fix: rename interaction_failure websocket handler

fixes #163
This commit is contained in:
David Guttman
2022-06-14 12:18:14 -07:00
parent f969c4091e
commit c8489bd48a

View File

@@ -0,0 +1,11 @@
'use strict';
const { Events } = require('../../../util/Constants');
module.exports = (client, { d: data }) => {
/**
* Emitted whenever client user send interaction and error
* @event Client#interactionFailure
* @param {InteractionResponseBody} data data
*/
client.emit(Events.INTERACTION_FAILURE, data);
};