From f1d0084da26b0111ca029c789ad9e8e6c2882b4d Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Sun, 17 Apr 2022 09:49:37 +0100 Subject: [PATCH] docs(ApplicationCommand): Fix ApplicationCommandOptionChoice (#7794) --- .../discord.js/src/structures/ApplicationCommand.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/packages/discord.js/src/structures/ApplicationCommand.js b/packages/discord.js/src/structures/ApplicationCommand.js index 779805ce4..c6cf7ecf2 100644 --- a/packages/discord.js/src/structures/ApplicationCommand.js +++ b/packages/discord.js/src/structures/ApplicationCommand.js @@ -213,7 +213,7 @@ class ApplicationCommand extends Base { */ /** - * @param {ApplicationCommandOptionChoiceData} ApplicationCommandOptionChoice + * @typedef {ApplicationCommandOptionChoiceData} ApplicationCommandOptionChoice * @property {string} [nameLocalized] The localized name for this choice */ @@ -458,15 +458,6 @@ class ApplicationCommand extends Base { * {@link ApplicationCommandOptionType.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} [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. * @param {ApplicationCommandOptionData|ApplicationCommandOption} option The option to transform