Skip to content

Releases: Snazzah/slash-create

v1.1.2

17 Dec 18:36
0f79f2d
Compare
Choose a tag to compare

Fixed:

  • Race conditions for command finalization
  • Errors in SlashCommand#onError goes to SlashCreator#error

v1.1.1

17 Dec 18:09
bc4fcea
Compare
Choose a tag to compare

Changed:

  • CommandContext#options is now a non-null object

Fixed:

  • Loading commands in a folder

v1.1.0

17 Dec 03:08
Compare
Choose a tag to compare

This release features mostly completed documentation and changes to the packages typings. If you are using TypeScript for this package, consider this a breaking change.

Changed:

  • [SEMI-BREAKING] Index changes
    • Command -> SlashCommand
    • Creator -> SlashCreator
    • CommandContext is aliased as Context
    • SlashCommand is aliased as Command
    • SlashCreator is aliased as Creator
    • If you are using any of the changed classes for typings, you must use its class name.
      • i.e. { Creator } must be { SlashCreator }
  • (typings) Renamed AllRequestData to AnyRequestData
  • (typings) Renamed FastifyOpts to FastifyOptions
  • (typings) Renamed duplicate LatencyRef interface in SequentialBucket to MinimalLatencyRef
  • (typings) Added CallbackFunction type for SequentialBucket

Added:

  • Fastify typings for FastifyServer#createEndpoint

Fixed:

  • Changed HTTP method in SlashCommandAPI#updateCommand from PUT to PATCH
  • User#flags now actually uses UserFlags
  • Renamed UserFlags class to the name "UserFlags"

v1.0.0

16 Dec 06:11
199b64f
Compare
Choose a tag to compare

Removed:

  • [BREAKING] Context.initialResponseDeleted
  • [BREAKING] treq parameter from SlashCreator#ping event - The event no longer emits any parameters

Changed:

  • [BREAKING] treq parameter in SlashCreator#unknownInteraction event is now interaction

Added:

  • More documentation
  • Context.edit(messageID, content, options)
  • Context.editOriginal(messageID, content, options)
  • Context.expired and internal handlers using this
  • Context.sendFollowUp(content, options)
  • Message and User class
  • GatewayServer - Support for gateway events
  • SlashCreatorAPI.interactionCallback(id, token, body)
  • Server.isWebserver
  • Server.handleInteraction()

Fixed:

  • Default error messages
  • Exports for Constants and CommandOptionType

v0.2.0

16 Dec 01:26
871a27a
Compare
Choose a tag to compare

Removed:

  • [BREAKING] Context.acknowledge now returns a promise
  • [BREAKING] Removed returnPromise from syncCommands

Added:

  • Errors will be thrown if a Server without its installed package is instantiated

Fixed:

  • RespondFunction is now a promise
  • Context.send erroring
  • Added/Updated debug emit lines
  • ExpressServer for TypeScript

v0.1.0

15 Dec 22:15
8a1f00f
Compare
Choose a tag to compare
v0.1.0 Pre-release
Pre-release

Initial Release