Skip to content

Commit 934a15e

Browse files
doc: improvements
1 parent 95dca61 commit 934a15e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ class Client extends HttpInteractionServer {
203203
/**
204204
* Registers a button interaction with its associated middleware.
205205
*
206-
* @param fns {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function | Async} functions. See {@link GenericMiddleware} for callback parameters.
206+
* @param fns - {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function | Async} functions. See {@link GenericMiddleware} for callback parameters.
207207
* @example
208208
* ```ts
209209
* router.button("custom_button_id", buttonMiddleware);
@@ -299,7 +299,7 @@ class Client extends HttpInteractionServer {
299299

300300
/**
301301
* Registers an autocomplete interaction with its associated middleware.
302-
*
302+
*
303303
* @param fns {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function | Async} functions. See {@link GenericMiddleware} for callback parameters.
304304
* @example
305305
* ```ts
@@ -314,7 +314,7 @@ class Client extends HttpInteractionServer {
314314
* .setDescription("City to get the weather for") // Option description
315315
* .setAutocomplete(true) // Enable autocomplete for this option
316316
* ),
317-
* (interaction) => handler
317+
* handler
318318
* );
319319
* router.autocomplete(githubQuery.getAutoCompleteKey("city"), autocompleteMiddleware);
320320
* ```

src/interactionRouter/autoCompleteKeyBuilder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export interface APIApplicationCommandAutocompleteInteractionModified {
5252
* .setDescription("City to get the weather for") // Option description
5353
* .setAutocomplete(true) // Enable autocomplete for this option
5454
* ),
55-
* (interaction) => handler
55+
* handler
5656
* );
5757
* router.autocomplete(weather.getAutoCompleteKey("city"), autocompleteMiddleware);
5858
*/

src/interactionRouter/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ class InteractionRouter {
239239
* .setDescription("City to get the weather for")
240240
* .setAutocomplete(true)
241241
* ),
242-
* (interaction) => handler
242+
* handler
243243
* );
244244
* router.autocomplete(githubQuery.getAutoCompleteKey("city"), autocompleteMiddleware);
245245
* ```

0 commit comments

Comments
 (0)