Hikari-lightbulb

Latest version: v2.3.5.post1

Safety actively analyzes 725511 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 6

3.0.0a11

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](https://github.com/tandemdude/hikari-lightbulb/issues/449))
- Fix default injection container being closed when explicitly entering the `DEFAULT` DI context.

Features

- Add `has_roles` check to the `prefab` subpackage. ([447](https://github.com/tandemdude/hikari-lightbulb/issues/447))
- Add `set_timeout` method to `MenuContext`. ([448](https://github.com/tandemdude/hikari-lightbulb/issues/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`.

3.0.0a10

Documentation

- Update code examples for version 3 from version 2. ([436](https://github.com/tandemdude/hikari-lightbulb/issues/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](https://github.com/tandemdude/hikari-lightbulb/issues/438))

Deprecations and Removals

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

3.0.0a9

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.

3.0.0a8

Features

- Add `hooks` parameter to `client_from_app` - allowing commands to inherit common hooks from the client. ([430](https://github.com/tandemdude/hikari-lightbulb/issues/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](https://github.com/tandemdude/hikari-lightbulb/issues/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.

3.0.0a7

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](https://github.com/tandemdude/hikari-lightbulb/issues/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](https://github.com/tandemdude/hikari-lightbulb/issues/428))

3.0.0a6

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](https://github.com/tandemdude/hikari-lightbulb/issues/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 `Loadables`s.

Page 2 of 6

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.