v2.1.4a1
·
777 commits
to master
since this release
2.1.4a1 - 2021-11-15
Added
injecting.SelfInjectingCallbackandtanjun.as_self_injectingto let users make a callback self-injecting by linking it to a client instance. This should make it easier to use Tanjun's dependency injection externally.- Dependency injection support for hook callbacks.
voiceproperty to Context and Client.Component.detect_commandsfor auto-loading commands from the current scope.delete_afteroption to context response methods.expires_atproperty to SlashContext.
Changed
Hookscan now contain multiple callbacks per hook type.load_from_attributesnow defaults toFalseinComponent.__init__.
Fixed
SlashContext.respondtrying to edit in the initial response instead of create a follow up if a deferred initial response was deleted.
Removed
injecting.BaseInjectableCallbackand other private extensions of this as these cases could easily be achieved withSelfInjectingCallbackandCallbackDescriptor.