Skip to content

Releases: hkwu/ghastly

v0.5.0

22 Jun 08:25
Compare
Choose a tag to compare

⭐️ breaking

Added

  • Additional options for specifying prefixes.
    • Deferred prefixes: by passing in a function as the client prefix option, you can defer the generation of a message prefix until you receive a message.
    • Regular expression prefixes: you can now pass a RegExp as a prefix. The flags associated with that RegExp are preserved.

Changed

  • String prefixes are no longer case-sensitive. You must switch to regular expressions if you wish to use case-sensitive prefixes. ⭐️

v0.4.1

23 Oct 04:33
Compare
Choose a tag to compare

Added

  • ArbitraryVoiceResponse, BroadcastVoiceResponse, ConvertedVoiceResponse, FileVoiceResponse, OpusVoiceResponse, StreamVoiceResponse response types for handling audio responses.

Deprecated

  • VoiceResponse response type. Please switch to the response types listed above.

v0.4.0

11 Oct 05:33
Compare
Choose a tag to compare

⭐ breaking

Changed

  • Custom Response classes no longer receive the command handler's context automatically in their executor functions. ⭐
  • VoiceResponse now takes the handler's context as its first argument in addition to its existing arguments. ⭐

v0.3.0

21 Apr 02:44
Compare
Choose a tag to compare

Added

  • @me prefix for selfbots.
  • Additional filter middleware.
  • Command groups.
  • Service dependency declaration within command configurations.

Changed

  • ServiceRegistry#fetch() is now ServiceRegistry#get().
  • ServiceRegistry#bind() has been split up into #bind(), #singleton() and #instance().
  • dispatchError event has been changed to dispatchFail. This event now emits two arguments: the type of failure encountered and an object with the failure context.
  • @self prefix is now @client.
  • Command registration moved to client's command registry's add() method. Client dispatcher is now a private property.

Removed

  • Function configuration support for configure().
  • unload() method for removing registered commands.
  • provide() middleware for injecting services.

v0.2.2

01 Apr 15:17
Compare
Choose a tag to compare

Fixed

  • Patch for npm release.

v2 releases prior to this release are botched.

v0.2.1

01 Apr 15:07
Compare
Choose a tag to compare

Fixed

  • Exports for responses and middleware.
  • Incorrect default value for configure().

v0.2.0

31 Mar 02:55
Compare
Choose a tag to compare

Changed

  • Refactored from the ground up. Check the docs for information.

v0.1.1

24 Sep 20:08
Compare
Choose a tag to compare
  • Add MessageBuffer.
  • Add RegEx command identifiers.
  • Add onBadArgs hook for commands for handling commands given with wrong arguments.
  • Remove some Babel dependencies.