Skip to content

Commit 1040ce0

Browse files
authoredApr 17, 2022
docs(ApplicationCommand): Fix ApplicationCommandOptionChoice (#7798)
1 parent 3eb45e3 commit 1040ce0

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed
 

‎src/structures/ApplicationCommand.js

+1-10
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ class ApplicationCommand extends Base {
206206
*/
207207

208208
/**
209-
* @param {ApplicationCommandOptionChoiceData} ApplicationCommandOptionChoice
209+
* @typedef {ApplicationCommandOptionChoiceData} ApplicationCommandOptionChoice
210210
* @property {string} [nameLocalized] The localized name for this choice
211211
*/
212212

@@ -449,15 +449,6 @@ class ApplicationCommand extends Base {
449449
* @property {number} [maxValue] The maximum value for an `INTEGER` or `NUMBER` option
450450
*/
451451

452-
/**
453-
* A choice for an application command option.
454-
* @typedef {Object} ApplicationCommandOptionChoice
455-
* @property {string} name The name of the choice
456-
* @property {string} [nameLocalized] The localized name for this choice
457-
* @property {Object<string, string>} [nameLocalizations] The localized names for this choice
458-
* @property {string|number} value The value of the choice
459-
*/
460-
461452
/**
462453
* Transforms an {@link ApplicationCommandOptionData} object into something that can be used with the API.
463454
* @param {ApplicationCommandOptionData|ApplicationCommandOption} option The option to transform

0 commit comments

Comments
 (0)
Please sign in to comment.