Skip to content

Releases: Snazzah/slash-create

v4.3.1

14 Nov 07:53
4ab722f
Compare
Choose a tag to compare

Added:

  • types: Added min_value and max_value types to integer/number options (#175)

v4.3.0

09 Oct 22:29
0f026e3
Compare
Choose a tag to compare

Added:

  • ApplicationCommandOption: Add channel type restriction option variant (#143)
  • Role: Added role icon (#147)
  • SlashCreator: Added global components (#145)
  • MessageInteractionContext: Added custom timeout and on expiry functions (#145)

Fixed:

  • types: Add application_id to request data (#146)
  • docs: Fixed some typos (#153)

v4.2.0

24 Sep 21:43
9e5d972
Compare
Choose a tag to compare

Added:

  • Autocomplete function to commands (#134)

Fixed:

  • Reloading commands clears require cache

v4.1.1

13 Sep 08:10
e0d9200
Compare
Choose a tag to compare

Fixed:

  • Fixed Vercel Endpoint

v4.1.0

13 Sep 05:32
8cd9d62
Compare
Choose a tag to compare

Added:

  • Support for Vercel (#121)

Fixed:

  • Channel mentions (#120)

v4.0.1

17 Aug 21:57
9486d0a
Compare
Choose a tag to compare

Fixed:

  • Fixed exports from last release

v4.0.0

16 Aug 22:38
0886ccd
Compare
Choose a tag to compare

Migrating from 3.x to 4.x

  • No major breaking changes to the package have been made. If you depend on other files from the package (i.e. slash-create/lib/server.js) then you may need to change things.
  • The permission MANAGE_EMOJIS has been renamed to MANAGE_EMOJIS_AND_STICKERS
  • For TypeScript users:
    • FollowUpMessageOptions and CommandOption have been removed.
    • ApplicationCommandOption no longer has the default option.

Removed:

  • ApplicationCommandOption: removed deprecated default option
    • Reorder the required options instead.
  • Permissions: removed MANAGE_EMOJIS permission in favor of MANAGE_EMOJIS_AND_STICKERS
  • types: removed CommandOption type
  • types: removed FollowUpMessageOptions in favor of MessageOptions

Changed:

  • types: RequestHandler -> ServerRequestHandler
  • types: TypedEmitter -> TypedEventEmitter
  • Permissions/UserFlags: FLAGS constants from Permissions and UserFlags are inaccessible from the file itself. Use Permissions.FLAGS instead.
  • index: Almost everything is now properly exported to index (#96)
    • All files are no longer using default for exporting

Fixed:

  • MessageInteractionContext: Deleting the original message de-references the message ID from the context (#97)
  • ComponentContext: Remove partial message parsing

v3.5.0

11 Aug 19:04
1f59f7e
Compare
Choose a tag to compare

Changed:

  • Permissions: MANAGE_EMOJIS is now MANAGE_EMOJIS_AND_STICKERS, making the former deprecated.

Added:

  • SlashCommand: Added multiple types support for context menu commands. (#94, see updated guide)
  • CommandContext: Added support for resolved messages and targeted objects. (#94, see updated guide)
  • Message: Added pinned property.
  • Permissions: Added MANAGE_THREADS, USE_PUBLIC_THREADS, USE_PRIVATE_THREADS and USE_EXTERNAL_STICKERS.

Fixed:

  • SlashCommandAPI: The interaction callback function no longer requires a token.

v3.4.3

08 Aug 21:45
141597e
Compare
Choose a tag to compare

Fixed:

  • ComponentContext allows for partial messages

v3.4.2

05 Aug 23:16
Compare
Choose a tag to compare

Fixed:

  • ComponentContext.message is now a Message class rather than a partial message