fix(Event): name

This commit is contained in:
March 7th
2022-06-14 08:48:06 +07:00
parent 72238015f9
commit 83c809cc32
8 changed files with 25 additions and 35 deletions

View File

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

View File

@@ -56,7 +56,7 @@ const handlers = Object.fromEntries([
['INTERACTION_CREATE', require('./INTERACTION_CREATE')],
['INTERACTION_SUCCESS', require('./INTERACTION_SUCCESS')],
['INTERACTION_MODAL_CREATE', require('./INTERACTION_MODAL_CREATE')],
['INTERACTION_FAILED', require('./INTERACTION_FAILED')],
['INTERACTION_FAILURE', require('./INTERACTION_FAILURE')],
['STAGE_INSTANCE_CREATE', require('./STAGE_INSTANCE_CREATE')],
['STAGE_INSTANCE_UPDATE', require('./STAGE_INSTANCE_UPDATE')],
['STAGE_INSTANCE_DELETE', require('./STAGE_INSTANCE_DELETE')],