Skip to content

Releases: sapphiredev/plugins

@sapphire/plugin-subcommands@7.0.0

07 Aug 18:01
Compare
Choose a tag to compare

@sapphire/plugin-subcommands@7.0.0 - (2024-08-07)

🏠 Refactor

  • Changed no match errors to emit on a subcommand listener instead of the root MessageCommandError / ChatInputCommandError (6e7a5bf) (#601 by @favna)
    • 💥 BREAKING CHANGE: If no subcommand matched the error was emitted to MessageCommandError or ChatInputCommandError.
      This was inconsistent with errors during runtime emitted to MessageSubcommandError and ChatInputSubcommandError respectively.
      Therefore these events are now emitted to the new events PluginMessageSubcommandNoMatch and PluginChatInputSubcommandNoMatch respectively.
      New built-in listeners for these events will log the infractions to the console at the error level. You can override these listeners to provide your functionality.

🐛 Bug Fixes

  • deps: Update all non-major dependencies (43df709) (#574 by @renovate[bot])
  • deps: Update all non-major dependencies (7909d16) (#573 by @renovate[bot])
  • subcommands: Export cooldown precondition on top level and deprecate namespaced exports (e71f926)
  • deps: Update all non-major dependencies (ee64834) (#546 by @renovate[bot])
  • subcommands: Update transitive dependencies (342090e)