Skip to content

Latest commit

 

History

History
84 lines (67 loc) · 3.26 KB

CHANGELOG.md

File metadata and controls

84 lines (67 loc) · 3.26 KB

Change Log

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

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.

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.

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.

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.

Fixed

  • Patch for npm release.

Fixed

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

Changed

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

No change notes available.

No change notes available.

No change notes available.

No change notes available.