Skip to content

Releases: Snazzah/slash-create

v6.3.0

25 Sep 01:01
422da8c
Compare
Choose a tag to compare

Changed:

  • POST callbacks will now return responses as InitialCallbackResponse, multiple functions can return this instead of a boolean denoting success

Added:

  • SlashCreators using webservers can use the postCallbacks option to serve 202s to interactions and POST a callback instead
  • Launching activities with MessageInteractionContext#launchActivity
  • Entry points
  • SlashCommand#getMention
  • MessageInteractionContext#defer now supports using any message flags
  • Support for editing message flags
  • Support for sending polls
  • [types] Updated MessageAttachmentOptions to support voice message properties
  • Message classes now support the following:
    • call objects (call)
    • more thread properties (position and thread)
    • polls (poll)
    • activity
    • applicationID
    • message snapshots / forwarded messages (messageSnapshots)
    • stickers (stickerItems)

Fixed:

  • HTTP errors will now properly format request errors
  • Fastify/Express servers should no longer respond early to some interactions
  • Message#interactionMetadata parsing has been updated and fixed to include more data
  • [types] Updated AutocompleteChoice to include name_localizations
  • [types] Updated MessageAttachment to include waveform, duration_secs, flags, title, and ephemeral
  • [types] Updated Message#components to be an array of any component rather than just action rows (See discord/discord-api-docs#7115)

v6.2.1

21 Jul 19:12
798e178
Compare
Choose a tag to compare

Fixed:

  • Fixed global modal submit handlers causing errors (#622)

v6.2.0

15 Jul 19:40
d9c838a
Compare
Choose a tag to compare

Added:

  • Added Server Context support for servers like Cloudflare Workers (#621)
  • Added premium button, deprecating MessageInteractionContext#promptPremium (#618)

Fixed:

  • Updated permission flags and names (#617)

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