Pre-Release Changelog¶
Below are all the changelogs for the pre-release versions of hikari-lightbulb (version 0.0.38 to 0.0.61).
Version 0.0.61¶
Breaking Changes
Removed
ArgInfodataclass.Rewritten
lightbulb.commands.SignatureInspectorclass.lightbulb.command_handler.Bot.resolve_args_for_commandnow takes an additional argumentcontext.Calling
lightbulb.commands.Command.invokewill no longer process converters.Changed
lightbulb.cooldowns.CooldownManager.add_cooldowninto a coroutine.
Other Changes
Added
lightbulb.checks.has_attachment.Added
lightbulb.checks.check_exempt.Fixed
KeyErrorbeing raised when attempting to remove a command/plugin that doesn’t existCreated class mapping for converters. See
convertersfor details.Added support for custom cooldowns through the
lightbulb.cooldowns.dynamic_cooldowndecorator.Added
lightbulb.converters.Greedyconverter.
Version 0.0.60¶
Added
lightbulb.events.LightbulbEvent.botproperty.Fixed admin permission checks not working as expected.
Version 0.0.59¶
Breaking Changes
lightbulb.plugins.Plugin.commandschanged to asetfrom adictfor consistency.
Other Changes
Added
lightbulb.plugins.Plugin.walk_commands.
Version 0.0.58¶
Breaking Changes
lightbulb.context.Context.replyrenamed tolightbulb.context.Context.respondfor consistency with hikari.
Other Changes
Fix
IndexErrorraised when no command provided after the prefix.Fix
lightbulb.checks.human_onlyand addlightbulb.checks.webhook_only.Fix
lightbulb.converters.role_converterincorrectly converting from mentions.Include support for hikari
2.0.0.dev98.
Version 0.0.57¶
Add
missing_argsparameter tolightbulb.errors.NotEnoughArguments.Fix
__iter__forlightbulb.converters.WrappedArg.Improve
lightbulb.command_handler.Bot.get_commandto allow you to get subcommands without having to calllightbulb.commands.Group.get_subcommand.
Version 0.0.56¶
Move docs to readthedocs.
Refactor errors to ensure they get instantiated correctly everywhere they are used.
Fix various check messages and an issue where a check decorator added an incorrect check function.
Version 0.0.55¶
Fix issue with errors not being raised correctly.
Fix
lightbulb.help.get_command_signatureshowing ctx for subcommands.Make
lightbulb.checks.bot_has_guild_permissionsandlightbulb.checks.has_guild_permissionspass if bot or invoker has the administrator permission.
Version 0.0.54¶
Various performance improvements.
Version 0.0.53¶
Fix print_banner.
Bump requirements.
Version 0.0.52¶
Breaking changes
Removed custom_emoji_converter and replaced it with
.converters.emoji_converter.
Other changes
Added
.checks.has_permissionsand.checks.bot_has_permissions.Added
.converters.guild_converter.Exposed navigator callbacks to make it easier to supply your own buttons.
Fixed navigator not working with custom emojis when using your own buttons.
Version 0.0.51¶
Added support for hikari 2.0.0.dev85.
Version 0.0.50¶
Fixed
.context.channel.Added NSFW channel only check.
Ensured all docstrings are correct and up to date, including any examples.
Version 0.0.49¶
Improved help docstring format parsing.
Fixed
.help.get_command_signatureno longer working due to anAttributeError.Fixed
.command_handler.Bot.send_helpno longer working.
Version 0.0.48¶
Added
.converters.colour_converterand.converters.message_converter.Added support for
typing.Unionandtyping.Optionalas converters/typehints.Exposed the current help class the bot uses through
help_command.Added support for a custom cooldown manager class through the
.cooldowns.cooldowndecorator.Improved the error message for
.errors.CommandInvocationError.
Version 0.0.47¶
Added
.context.Context.channeland.context.Context.guildproperties.Added
.plugins.Plugin.plugin_checkmethod.Added
.converters.custom_emoji_converter.Made converters work when the arg is a name/name#discrim/nickname/etc
Added support for hikari 2.0.0.dev75
Version 0.0.46¶
Fixed converters not working with kwargs for commands in plugins.
Improved README.md.
Added documentation and public method for how to customise how arguments are parsed.
Version 0.0.45¶
Rewrote the argument parsing system and greedy arg system.
Made converters work for greedy args.
Added functionality to
.stringview.StringViewto allow it to only parse up to a specified number of args.Abstracted the
.command_handler.Bot.handlemethod to make it easier to override to customise functionality.
Version 0.0.44¶
Improved
.command_handler.Bot.walk_commands.Added
.commands.Group.walk_commands.Added
.commands.Command.qualified_name,.commands.Command.callback,.commands.Command.checks.Fixed wonky default help for command groups.
Added
.context.Context.send_helpand.command_handler.Bot.send_help.Added
.command_handler.Bot.get_context.Added
.command_handler.Bot.help_class.
Version 0.0.43¶
Breaking changes
.events.CommandErrorEventhas been moved from theerrorsmodule to theeventsmodule.
Other changes
Added new module,
lightbulb.events.Added two new events,
.events.CommandInvocationEventand.events.CommandCompletionEvent.Added
.commands.Command.before_invokeand.commands.Command.after_invoke.Added
.command_handler.when_mentioned_orto allow you to use the bot’s mention as a prefix.Added
.context.Context.clean_prefixto fix wonky looking prefixes due to mentions.Fixed help command for single commands having quotes render incorrectly.
Version 0.0.42¶
Changed
user_required_permissionsandbot_required_permissionsto behikari.Permissionsobjects.Added
.errors.CommandInvocationErrorfor catching of errors raised during the invocation of a command.Fixed greedy args not working with a default.
Version 0.0.41¶
Added support for hikari 2.0.0.dev70.
Made instance methods work correctly as command specific error handlers.
Made context accessible through
.events.CommandErrorEvent.Added isort to properly sort the import statements, not that you care.
Version 0.0.40¶
Added the utils
.utils.getand.utils.findhelper functions.Fix the
__init__.pyfor the utils subpackage.
Version 0.0.39¶
Made it so that plugin names with spaces now work in the help command.
Fixed issue where duplicate commands would appear in help command and in Group.subcommands.
Added section to
Implementing a Custom Help Commandabout using plugins with a custom help command.Added a changelog.