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.
- 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 thatRegExp
are preserved.
- String prefixes are no longer case-sensitive. You must switch to regular expressions if you wish to use case-sensitive prefixes.
ArbitraryVoiceResponse
,BroadcastVoiceResponse
,ConvertedVoiceResponse
,FileVoiceResponse
,OpusVoiceResponse
,StreamVoiceResponse
response types for handling audio responses.
VoiceResponse
response type. Please switch to the response types listed above.
- Custom
Response
classes no longer receive the command handler'scontext
automatically in their executor functions. VoiceResponse
now takes the handler's context as its first argument in addition to its existing arguments.
@me
prefix for selfbots.- Additional filter middleware.
- Command groups.
- Service dependency declaration within command configurations.
ServiceRegistry#fetch()
is nowServiceRegistry#get()
.ServiceRegistry#bind()
has been split up into#bind()
,#singleton()
and#instance()
.dispatchError
event has been changed todispatchFail
. 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.
- Function configuration support for
configure()
. unload()
method for removing registered commands.provide()
middleware for injecting services.
- Patch for npm release.
- Exports for responses and middleware.
- Incorrect default value for
configure()
.
- 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.