From 63cd9926bb048713e5828a986d92ea1976c792ee Mon Sep 17 00:00:00 2001 From: Fadi Raad <152330117+0xmortuex@users.noreply.github.com> Date: Sat, 23 May 2026 01:47:15 +0300 Subject: [PATCH] docs: fix typos and duplicated words in comments and guide (#11502) - fix "wether" -> "whether" and "dependant" -> "dependent" in RedisGateway JSDoc - fix duplicated "the" in useful-packages guide - fix duplicated "for" in two internal JSDoc param descriptions Co-authored-by: Claude Opus 4.7 (1M context) Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- .../src/structures/CommandInteractionOptionResolver.js | 2 +- packages/discord.js/src/structures/ModalSubmitFields.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/discord.js/src/structures/CommandInteractionOptionResolver.js b/packages/discord.js/src/structures/CommandInteractionOptionResolver.js index 621dbf44e..0776d025c 100644 --- a/packages/discord.js/src/structures/CommandInteractionOptionResolver.js +++ b/packages/discord.js/src/structures/CommandInteractionOptionResolver.js @@ -86,7 +86,7 @@ class CommandInteractionOptionResolver { * Gets an option by name and property and checks its type. * @param {string} name The name of the option. * @param {ApplicationCommandOptionType[]} allowedTypes The allowed types of the option. - * @param {string[]} properties The properties to check for for `required`. + * @param {string[]} properties The properties to check for `required`. * @param {boolean} required Whether to throw an error if the option is not found. * @returns {?CommandInteractionOption} The option, if found. * @private diff --git a/packages/discord.js/src/structures/ModalSubmitFields.js b/packages/discord.js/src/structures/ModalSubmitFields.js index c81bf011e..4c90aa909 100644 --- a/packages/discord.js/src/structures/ModalSubmitFields.js +++ b/packages/discord.js/src/structures/ModalSubmitFields.js @@ -72,7 +72,7 @@ class ModalSubmitFields { * * @param {string} customId The custom id of the component. * @param {ComponentType[]} allowedTypes The allowed types of the component. - * @param {string[]} properties The properties to check for for `required`. + * @param {string[]} properties The properties to check for `required`. * @param {boolean} required Whether to throw an error if the component value(s) are not found. * @returns {ModalData} The option, if found. * @private