@hyperneutrino/djs-lite 1.7.1 → 1.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.ts +6 -2
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -315,7 +315,9 @@ async function loadSubcommandsAndGroups(directory: string) {
315
315
  * @param directory The relative path (from your execution point) containing your command handlers.
316
316
  * @param config Command-related configuration values.
317
317
  * @param config.guildId The ID of the guild to which to set the commands.
318
- * @param config.wrappers A set of wrappers which transform all handler functions for each handler type.
318
+ * @param config.wrappers A set of wrappers which transform all handler functions for each handler type. This wrapper will be called on each of your configured
319
+ * handlers of the relevant type and must return another handler (i.e. it is a function that transforms its input parameter, which is itself a handler
320
+ * function). This is like middleware; use this for things like error handling, logging, etc.
319
321
  * @returns `commands`, the loaded command data (an array of objects).
320
322
  * @returns `slashCommandHandlers`, the map from each slash command name to its handler.
321
323
  * @returns `userCommandHandlers`, the map from each user context menu command name to its handler.
@@ -410,7 +412,9 @@ export async function loadCommands(client: Client<true>, directory: string, conf
410
412
  * @param directory The relative path (from your execution point) containing your interaction handlers.
411
413
  * @param config Interaction-related configuration values.
412
414
  * @param config.argumentSeparator The separator used to split custom IDs. This defaults to `:`.
413
- * @param config.wrappers A set of wrappers which transform all handler functions for each handler type.
415
+ * @param config.wrappers A set of wrappers which transform all handler functions for each handler type. This wrapper will be called on each of your configured
416
+ * handlers of the relevant type and must return another handler (i.e. it is a function that transforms its input parameter, which is itself a handler
417
+ * function). This is like middleware; use this for things like error handling, logging, etc.
414
418
  * @returns `modalHandlers`, the map from each modal submit handler's configuration file path to its handler function.
415
419
  * @returns `buttonHandlers`, the map from each button handler's configuration file path to its handler function.
416
420
  * @returns `stringSelectMenuHandlers`, the map from each string select menu handler's file path to its handler function.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hyperneutrino/djs-lite",
3
3
  "private": false,
4
- "version": "1.7.1",
4
+ "version": "1.7.2",
5
5
  "module": "index.ts",
6
6
  "type": "module",
7
7
  "devDependencies": {