Skip to content

Releases: Snazzah/slash-create

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

v5.12.0

27 Apr 17:54
e741fa8
Compare
Choose a tag to compare

Changed:

  • Channel: Updated channel object to include almost all available channel properties
  • User: Supports avatar decoration presets
  • SlashCreator: Switch to using protected internal methods (#419)

Added:

  • Member: Add flags property (#460)
  • Permissions: Added MANAGE_EVENTS, VIEW_CREATOR_MONETIZATION_ANALYTICS, USE_SOUNDBOARD, SEND_VOICE_MESSAGES permissions
  • BaseInteractionContext: Added channel property
  • Role: Added tags property
  • Member: Added flags property

Fixed:

  • SlashCreator: Fix sync guild option being ignored
  • types: Fixed GUILD_FORUM enum value (#415)

v5.11.0

18 Dec 20:57
1dde478
Compare
Choose a tag to compare

Added:

  • SlashCreator: Added global modals (#396)
  • SlashCommand: Added nsfw option

v5.10.0

17 Oct 11:41
41676f5
Compare
Choose a tag to compare

Changed:

  • Context: Refactored duplicate methods into a single BaseInteractionContext (#384)
  • Server: Deprecated .use and .addMiddleware and made app member public
  • FastifyServer: Support for v4

Added:

  • types: GUILD_FORUM and GUILD_DIRECTORY to ChannelType
  • types: Added USER_SELECT, ROLE_SELECT, MENTIONABLE_SELECT, CHANNEL_SELECT and renamed SELECT to STRING_SELECT (#264)

v5.9.0

04 Sep 19:10
4bbf3e6
Compare
Choose a tag to compare

Changed:

  • RequestHandler: Updated API version to v10
    • This shouldn't change anything when it comes to interaction-specific requests, but be mindful when making manual API requests

Added:

  • MessageInteractionContext: Editing attachments (#358, #361)
  • RequestHandler: Added ability to send audit log reason in requests

Fixed:

  • types: Fixed embed types (#357)

v5.8.0

17 Aug 04:13
1da9a4e
Compare
Choose a tag to compare

Added:

  • User: Avatar Decorations
    • Note that this isn't even out yet in canary but as an experiment, so this may change later or just get removed in general. This change also had some fixes with it and doesn't break anything, so it's there for whenever it exists since it is an existing prop in user objects.

Fixed:

  • types: Fixed option localization types
  • SlashCreator: Modal callbacks actually get removed after use
  • SlashCreator: Emit unverifiedRequest on bad timestamps
  • MessageInteractionContext: Options should no longer be modified when used in sending messages

v5.7.1

12 Jul 04:43
aa88f6c
Compare
Choose a tag to compare

Added:

  • types: Add types for min_length and max_length

Fixed:

  • MessageInteractionContext: Reflect changes on ctx.edit from a1e2972 (#336)