chore(release): version

This commit is contained in:
March 7th
2022-06-15 23:07:24 +07:00
parent d2a766ef3b
commit 007f0ef3b1
13 changed files with 173 additions and 72 deletions

View File

@@ -0,0 +1,23 @@
'use strict';
const { Events } = require('../../../util/Constants');
module.exports = (client, { d: data }) => {
/**
* @typedef {object} AutocompleteResponseChoice
* @property {string} name The name of the choice
* @property {string} value The value of the choice
*/
/**
* @typedef {object} AutocompleteResponse
* @property {Snowflake} [nonce] Snowflake of the data
* @property {Array<AutocompleteResponseChoice>} [choices] Array of choices
*/
/**
* Emitted when receiving a response from Discord
* @event Client#applicationCommandAutocompleteResponse
* @param {AutocompleteResponse} data Data
* @deprecated Test only
*/
client.emit(Events.DEBUG, data);
};

View File

@@ -2,5 +2,10 @@
const { Events } = require('../../../util/Constants');
module.exports = (client, { d: data }) => {
/**
* Emitted whenever client user send interaction and success
* @event Client#interactionSuccess
* @param {InteractionResponseBody} data data
*/
client.emit(Events.INTERACTION_SUCCESS, data);
};