mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
docs(ApplicationCommand): Fix ApplicationCommandOptionChoice (#7798)
This commit is contained in:
@@ -206,7 +206,7 @@ class ApplicationCommand extends Base {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ApplicationCommandOptionChoiceData} ApplicationCommandOptionChoice
|
* @typedef {ApplicationCommandOptionChoiceData} ApplicationCommandOptionChoice
|
||||||
* @property {string} [nameLocalized] The localized name for this choice
|
* @property {string} [nameLocalized] The localized name for this choice
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -449,15 +449,6 @@ class ApplicationCommand extends Base {
|
|||||||
* @property {number} [maxValue] The maximum value for an `INTEGER` or `NUMBER` option
|
* @property {number} [maxValue] The maximum value for an `INTEGER` or `NUMBER` option
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
|
||||||
* A choice for an application command option.
|
|
||||||
* @typedef {Object} ApplicationCommandOptionChoice
|
|
||||||
* @property {string} name The name of the choice
|
|
||||||
* @property {string} [nameLocalized] The localized name for this choice
|
|
||||||
* @property {Object<string, string>} [nameLocalizations] The localized names for this choice
|
|
||||||
* @property {string|number} value The value of the choice
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Transforms an {@link ApplicationCommandOptionData} object into something that can be used with the API.
|
* Transforms an {@link ApplicationCommandOptionData} object into something that can be used with the API.
|
||||||
* @param {ApplicationCommandOptionData|ApplicationCommandOption} option The option to transform
|
* @param {ApplicationCommandOptionData|ApplicationCommandOption} option The option to transform
|
||||||
|
|||||||
Reference in New Issue
Block a user