Skip to content

v4.0.0

Compare
Choose a tag to compare
@Snazzah Snazzah released this 16 Aug 22:38
· 992 commits to master since this release
0886ccd

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