Skip to content

v2.1.4a1

Choose a tag to compare

@FasterSpeeding FasterSpeeding released this 15 Nov 07:22
· 777 commits to master since this release
e2f52b7

2.1.4a1 - 2021-11-15

Added

  • injecting.SelfInjectingCallback and tanjun.as_self_injecting to 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.
  • voice property to Context and Client.
  • Component.detect_commands for auto-loading commands from the current scope.
  • delete_after option to context response methods.
  • expires_at property to SlashContext.

Changed

  • Hooks can now contain multiple callbacks per hook type.
  • load_from_attributes now defaults to False in Component.__init__.

Fixed

  • SlashContext.respond trying to edit in the initial response instead of create a follow up if a deferred initial response was deleted.

Removed

  • injecting.BaseInjectableCallback and other private extensions of this as these cases could easily be achieved with SelfInjectingCallback and CallbackDescriptor.