Skip to content

Releases: tandemdude/hikari-lightbulb

v2.3.5.post1

26 Sep 18:02
Compare
Choose a tag to compare

Bumps minimum Hikari version to 2.1.0.

v3.0.0a12

30 Aug 14:48
Compare
Choose a tag to compare
v3.0.0a12 Pre-release
Pre-release

Breaking Changes

  • Menu.attach now has the wait parameter set to True by default, and the timeout parameter set to 30s by default.

Bugfixes

  • Fix DI creating a new default container every time instead of reusing the existing one.
  • Fixed DI failing when trying to create dependencies with more complex dependency trees.

v3.0.0a11

29 Aug 10:45
Compare
Choose a tag to compare
v3.0.0a11 Pre-release
Pre-release

Bugfixes

    • Improved container hierarchical dependency resolution process.
    • Add significantly more DEBUG logging throughout the DI pipeline.
    • DependencyInjectionManager.enter_context now needs to be called for every context you wish to enter; it will no longer enter the default context automatically.
    • DependencyInjectionManager.enter_context now searches the existing container hierarchy to find an existing container for the passed context before trying to create a new one.
    • DependencyInjectionManager.enter_context now returns a no-op container implementation instead of None if DI is disabled globally.

    (#449)

  • Fix default injection container being closed when explicitly entering the DEFAULT DI context.

Features

  • Add has_roles check to the prefab subpackage. (#447)
  • Add set_timeout method to MenuContext. (#448)
  • Add client attribute to ModalContext and MenuContext.
  • Add enable_all_components and disable_all_components methods to Menu.
  • Add registered_commands and invokable_commands properties to Client.

v2.3.5.post0

28 Aug 20:12
115b7b3
Compare
Choose a tag to compare

Bumps minimum Hikari version to 2.0.0.

v3.0.0a10

15 Aug 17:11
Compare
Choose a tag to compare
v3.0.0a10 Pre-release
Pre-release

Documentation

  • Update code examples for version 3 from version 2. (#436)

Features

  • Add a component and modal handler implementation. You can use these to more easily handle the creation and execution of message components, as well as submitted modal forms. (#438)

Deprecations and Removals

  • The ephemeral argument for Context.defer() is now keyword-only.

v3.0.0a9

08 Aug 11:01
Compare
Choose a tag to compare
v3.0.0a9 Pre-release
Pre-release

Features

  • Add prefab subpackage containing some simple built-in hooks. More will continue to be added.
  • utils.get_command_data() now works for groups and subgroups.

Miscellaneous

  • Switch to using types from collections.abc instead of typing wherever possible.

v3.0.0a8

29 Jul 14:17
e072d56
Compare
Choose a tag to compare
v3.0.0a8 Pre-release
Pre-release

Features

  • Add hooks parameter to client_from_app - allowing commands to inherit common hooks from the client. (#430)

Bugfixes

  • Fix autocomplete callbacks not being called if the option had localization enabled.
  • Fix command parameter validation failing sometimes when using long localization keys.
  • Fix subcommands with localization enabled not being invoked as expected.
  • Slightly improved performance of invoking nested subcommands.

Deprecations and Removals

    • Client.register_deferred has been removed. You should now use Client.register(defer_guilds=True) instead.

    • guilds kwarg for Client.register has new semantics. Read the docstring for more information.

    (#429)

  • Removed HookFailedException. ExecutionPipelineFailedException now has two attributes containing the hooks that
    failed, and the exception that caused them to fail. You may need to update your error handler to reflect this.

v3.0.0a7

23 Jul 12:40
Compare
Choose a tag to compare
v3.0.0a7 Pre-release
Pre-release

Features

  • Dependency injection system has been completely rewritten to make it much more flexible and powerful. See the
    dependencies guide on the 'By Examples' page for details on the new implementation. (#428)

Deprecations and Removals

    • Removed lightbulb.with_di, it has been replaced by lightbulb.di.with_di
    • Removed lightbulb.INJECTED, it has been replaced by lightbulb.di.INJECTED
    • Removed Client.di.register_dependency - see the dependencies guide for details on the replacement

    (#428)

v3.0.0a6

18 Jul 09:54
Compare
Choose a tag to compare
v3.0.0a6 Pre-release
Pre-release

Features

  • Add support for unloading and atomic reloading of extensions.
  • Implement repeating tasks - including uniform and cron-based triggers and support within extensions.

Bugfixes

  • Fix limit for message ID length for options name and description when using GnuLocalizationProvider. (#427)
  • Fix localization not being supported correctly for commands using deferred guild registration.

Deprecations and Removals

  • The unload() method is now required to be implemented for Loadabless.

v3.0.0a5

13 Jul 08:38
Compare
Choose a tag to compare
v3.0.0a5 Pre-release
Pre-release

Features

  • Refactor ExecutionPipelineFailedException to make writing error handlers more intuitive.

Bugfixes

  • Fix incorrect assertion error happening sometimes when a subcommand is invoked.