mirror of
https://github.com/discordjs/discord.js.git
synced 2026-06-03 17:40:07 +00:00
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) <noreply@anthropic.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -110,7 +110,7 @@ interaction.reply(oneLineCommaListsOr`
|
||||
`);
|
||||
```
|
||||
|
||||
Check the the documentation to find more useful functions.
|
||||
Check the documentation to find more useful functions.
|
||||
|
||||
## chalk
|
||||
|
||||
|
||||
@@ -35,8 +35,8 @@ export type RedisBrokerDiscordEvents = {
|
||||
* events as the receiving service expects, and also that you handle GatewaySend events.
|
||||
* - One drawback to using this directly with `@discordjs/core` is that you lose granular control over when to `ack`
|
||||
* events. This implementation `ack`s as soon as the event is emitted to listeners. In practice, this means that if your
|
||||
* service crashes while handling an event, it's pretty arbitrary wether that event gets re-processed on restart or not.
|
||||
* (Mostly dependant on if your handler is async or not, and also if the `ack` call has time to go through).
|
||||
* service crashes while handling an event, it's pretty arbitrary whether that event gets re-processed on restart or not.
|
||||
* (Mostly dependent on if your handler is async or not, and also if the `ack` call has time to go through).
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
|
||||
@@ -97,7 +97,7 @@ class CommandInteractionOptionResolver {
|
||||
*
|
||||
* @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
|
||||
|
||||
@@ -79,7 +79,7 @@ class ModalComponentResolver {
|
||||
*
|
||||
* @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
|
||||
|
||||
Reference in New Issue
Block a user