Skip to content

v6.0.0

Compare
Choose a tag to compare
@Snazzah Snazzah released this 06 Nov 20:07
· 100 commits to master since this release
6164e17

Breaking Changes:

  • SlashCreator#syncCommands is now an asynchronous function, replacing #syncCommandsAsync.
  • All old command permission functions have been removed.
  • Command reregistering has been removed.
  • The request handler has been rewritten to use undici using this PR by @HeadTriXz.
  • Setting a maximum signature timestamp (SlashCreatorOptions#maxSignatureTimestamp) has been removed. This has caused more issues and timestamps are not checked from other implementations of slash commands.
  • The minimum Node version of slash-create is now v16.
  • SlashCreator#registerCommandsIn is now async.
  • SlashCreator#registerCommand and SlashCreator#registerCommands now return the commands that have been registered.

Additions:

  • Commands can now use the throttle() function which takes a CommandContext and allows you to asynchronously ratelimit users before running the command itself.
  • slash-create now has a web export for built-in Cloudflare Worker compatibility.
  • Support for the Bun runtime with BunServer.
  • Added the USE_EXTERNAL_SOUNDS permission. (1 << 46)

Fixed:

  • types: min_length and max_length to string options now exists