Releases: hkwu/ghastly
Releases · hkwu/ghastly
v0.5.0
⭐️ 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 thatRegExp
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
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
v0.3.0
Added
@me
prefix for selfbots.- Additional filter middleware.
- Command groups.
- Service dependency declaration within command configurations.
Changed
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.
Removed
- Function configuration support for
configure()
. unload()
method for removing registered commands.provide()
middleware for injecting services.