Version 2 Changelog#
Below are all the changelogs for the stable versions of hikari-lightbulb (version 2.0.0 to present).
Fix context menu commands not able to be registered globally.
StartingEventlistener not correctly being subscribed to in the tasks extension.
__all__to add missing items.
Fix non-ephemeral followup responses to interactions not being able to be edited.
Add support for
Fix plugins being shown in the default help command even when no commands are visible in the plugin.
Fix subcommand names being present in
Context.optionsfor slash subcommands.
Fix option serialiser not correctly detecting changes for value for
KeyErrorbeing raised instead of a more appropriate error when attempting to reload an extension that is not already loaded.
lightbulb.ext.tasksextension for repeating tasks.
auto_defernot working as expected for subcommands.
Fix subcommands not being registered to more than one command group at a time where it would be expected.
Add context menu (user and message) commands.
BotApp.remove_pluginnot correctly removing plugins from the bot’s plugin list.
Modify the stop emoji for
Add additional validation for slash command options.
Rewrite application command management system to reduce the total number of requests made.
Fix plugins showing in the default help command when there are no commands shown for that plugin.
Add support for sending of attachment(s) within interaction initial responses.
Add typing overloads to
Implement ability to use namespace packages to extend lightbulb. See Extension Libraries.
Fix application command instances being populated only if the command was created.
Fix application commands only being created for the first given guild ID.
Fix various typing preventing code written using lightbulb from being mypy compliant.
__all__to all init files in order to be able to export more items to top level.
Allow absolute paths to be passed to
Fix various type hints for the
Fix options with a default value of
0actually defaulting to
Fix slash command groups erroring on creation if using the
Add exclusive checks feature. Only one of the exclusive checks will be required to pass in order for the command to be run. See the checks API reference page for more information.
This version is a complete rewrite of the API. Almost everything has been rewritten from scratch so don’t expect much, if any, of the API to be the same as in version 1.
Lightbulb is now fully typed and mypy compliant.
Slight memory usage improvements.
Added ability to do
python -m lightbulbto give basic version information.
- Complete rewrite of the method used to define commands. See Creating Commands for details on the new method.
Prefix and slash commands are now defined the same way, and single functions can implement any combination of commands.
Options (arguments) are now defined using the
lightbulb.decorators.optiondecorator instead of parsing the command signature.
Plugins are no longer defined as classes. See Plugins for details on the new method of defining and using plugins.
Contexts now all have the same interface.
lightbulb.context.base.Contextis the base class.
- Help command has been completely overhauled.
get_command_signaturefunction in favour of a
signatureproperty on command objects.
Application command management and change detection has been completely overhauled.
Some errors have been removed, new errors have been added.
Custom converters have been overhauled to use a base class instead of being functions
Added ability to automatically defer responses to commands, as well as the ability to send all responses from a command as ephemeral by default.
Rewrite permission checks.
Added many more event types for the additional types of commands available.
Minor changes to cooldown implementation.
Added data store module to assist with storing data in the bot (and optionally plugin) instance(s).
Refactor argument parsing for prefix commands to allow you to drop in your own implementation.
Minor changes to navigator and paginator implementation - you shouldn’t notice these in normal use.
Command and context classes moved up a level to their respective sub-modules. You can no longer access them with
lightbulb.xyou need to instead do
Prefix command groups, subgroups and subcommands now require separate classes.
Added guides section in the documentation.
Changed documentation theme.