chore(release): version
This commit is contained in:
@@ -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);
|
||||
};
|
@@ -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);
|
||||
};
|
||||
|
Reference in New Issue
Block a user