chore(release): version

This commit is contained in:
March 7th
2022-06-13 23:53:43 +07:00
parent bdc1c70758
commit dd2912fb8d
14 changed files with 245 additions and 31 deletions
@@ -1,7 +1,17 @@
'use strict';
const { Events } = require('../../../util/Constants');
/**
* @typedef {Object} InteractionResponseBody
* @property {Snowflake} id maybe id of this event (???) (documentation needed)
* @property {Snowflake} nonce nonce in POST /interactions
*/
module.exports = (client, packet) => {
if (client.user.bot) client.actions.InteractionCreate.handle(packet.d);
else client.emit(Events.INTERACTION_CREATE, packet.d);
/**
* Emitted whenever client user send interaction
* @event Client#interactionSuccess
* @param {InteractionResponseBody} data InteractionResponseBody
*/ else client.emit(Events.INTERACTION_CREATE, packet.d);
};