Skip to content

Releases: Snazzah/slash-create

v6.1.4

12 Jun 23:12
5ccc8d1
Compare
Choose a tag to compare

Changed:

  • Export node util functions verifyKey and getFiles (#614)

Fixed:

  • Handle null reponses properly in DiscordRESTError
  • Fix typing for ComponentButton (#616)
  • Updated channel permissions description (#613)

v6.1.3

24 Apr 03:07
4c06fb5
Compare
Choose a tag to compare

Fixed:

v6.1.2

04 Apr 15:59
666a62f
Compare
Choose a tag to compare

Fixed:

  • Added DANGER ButtonStyle in accordance to Discord documentation
  • Added the Request object to the rawREST event for SlashCreator

v6.1.1

30 Mar 14:42
acfa883
Compare
Choose a tag to compare

Fixed:

  • Removed a debug log statement (#608)

v6.1.0

30 Mar 00:04
f6116f7
Compare
Choose a tag to compare

Added:

  • Support for user-installable apps (discord changelog)
    • Added SlashCommandOptions#integrationTypes and SlashCommandOptions#contexts
    • Added BaseInteraction#authorizingIntegrationOwners and BaseInteraction#context
    • Message#interaction deprecated in favor of Message#interactionMetadata

Fixed:

  • Added applied_tags field to channel structure (#607)
  • Use global name in Member#displayName

v6.0.2

07 Dec 19:20
d5ba462
Compare
Choose a tag to compare

Fixed:

  • Fixed some possible issues with verifying responses

v6.0.1

06 Nov 21:36
e0724fb
Compare
Choose a tag to compare

Fixed:

  • Fixed some types being exported, leading to failed builds

v6.0.0

06 Nov 20:07
6164e17
Compare
Choose a tag to compare

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

v5.14.0

27 Sep 01:55
89ab744
Compare
Choose a tag to compare

Added:

  • Premium Subscription attributes and functions
    • BaseInteractionContext: Added entitlements
    • MessageInteractionContext: Added promptPremium()
  • types: Added default_value to select menu types

v5.13.0

07 Jun 03:02
f8eb91e
Compare
Choose a tag to compare

Added:

  • User: added support new username system (#470)

Fixed:

  • SlashCreator: Set syncPermissions to false by default