Skip to content

Releases: tandemdude/hikari-lightbulb

v2.3.3

17 Apr 17:36
Compare
Choose a tag to compare
  • bucket attribute has been added to lightbulb.errors.MaxConcurrencyLimitReached.

  • Fix button navigator due to hikari breaking changes.

  • Autocomplete callbacks may no longer return instances of hikari.CommandChoice as it has been deprecated. Use AutocompleteChoiceBuilder instead.

v2.3.2

04 Mar 17:23
Compare
Choose a tag to compare

Potentially Breaking Changes

  • Module lightbulb.utils.parser has been moved up a level to lightbulb.parser.

  • OptionsProxy will now raise an AttributeError when trying to access an option that does not exist.

Other Changes

  • Slash commands now have full custom converter support.

  • Permission checks improved to use interaction permission fields where appropriate.

  • Fix lightbulb.commands.base.ApplicationCommand.nsfw not applying correctly for global commands.

  • Implement min_length and max_length for command options.

  • Fix deferral of slash subcommands not working as intended.

v2.3.1

11 Dec 14:16
Compare
Choose a tag to compare

Potentially Breaking Changes

  • lightbulb.cooldown_algorithms.CooldownStatus has been moved from the buckets module to the
    cooldown_algorithms module.

  • commands_run attribute has been removed from the lightbulb.buckets.Bucket class.

Other Changes

  • Add lightbulb.commands.base.CommandLike.nsfw and nsfw kwarg in lightbulb.decorators.command
    decorator in order to mark a command as only usable in NSFW channels.

  • Deprecate lightbulb.checks.nsfw_channel_only. Use the above new feature instead. The check will
    be removed in version 2.4.0.

  • Add lightbulb.context.base.Context.respond_with_modal. Note that this will not work if called
    on an instance of lightbulb.context.prefix.PrefixContext.

  • Add lightbulb.plugins.Plugin.listeners.

  • Improve lightbulb.converters.special.MessageConverter to support conversion of channelid-messageid format.

  • Implement multiple built-in cooldown algorithms which can be specified when adding a cooldown to a command.

v2.3.0

05 Dec 19:11
Compare
Choose a tag to compare

Breaking Changes

  • lightbulb.utils.Parser api has been completely changed. If you use this class directly in your own codebase then you will need to change your code.

Other Changes

  • Add support for hikari 2.0.0.dev113.

  • Checks should not work in threads.

  • Implement application command localization.

v2.2.5

02 Nov 20:53
Compare
Choose a tag to compare
  • Add support for Python 3.11.

  • Bump hikari requirement to 2.0.0.dev111.

  • Allow a user to iterate through ctx.options using OptionsProxy.items().

v2.2.4

16 Jul 12:01
Compare
Choose a tag to compare
  • Add lightbulb.utils.DataStore.get_as to improve ability of DataStore to be type-complete

v2.2.3

06 Jul 23:02
Compare
Choose a tag to compare
  • Implement application command permissions V2

v2.2.2

03 Jun 16:03
Compare
Choose a tag to compare
  • Add ability to edit ephemeral followup responses to application commands.

  • Implement wait_before_execution for tasks to allow delaying the first task execution.

  • ResponseProxy is now awaitable to allow you to directly await the response to retrieve the message.

  • Permission util methods (and by proxy checks) now account for guild owner having all permissions.

  • Improve typing and add missing method overloads.

  • Improve CONSUME_REST to strip leading whitespace before consuming the remaining string.

  • Fix subcommand attribute propagation problems when setting initialiser attributes.

v2.2.1

17 Mar 10:54
Compare
Choose a tag to compare
  • Add lightbulb.errors.ConverterFailure.raw_value.

  • Fix context menu commands not able to be registered globally.

  • Fix StartingEvent listener not correctly being subscribed to in the tasks extension.

  • Update __all__ to add missing items.

  • Add lightbulb.errors.CheckFailure.causes.

  • Fix non-ephemeral followup responses to interactions not being able to be edited.

  • Add support for hikari.Attachment option type.

  • Add kwarg pass_options to lightbulb.decorators.command decorator.

  • Add lightbulb.decorators.set_max_concurrency.

  • Deprecate lightbulb.checks.has_attachment.

  • 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.options for slash subcommands.

v2.2.0

03 Feb 20:26
Compare
Choose a tag to compare
  • Fix option serialiser not correctly detecting changes for value for min|max_value.

  • Add delete_after kwarg to Context.respond.

  • Fix KeyError being raised instead of a more appropriate error when attempting to reload an extension that is not already loaded.

  • Add lightbulb.ext.tasks extension for repeating tasks.

  • Fix ephemeral and auto_defer not 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.

  • Fix BotApp.remove_plugin not correctly removing plugins from the bot's plugin list.

  • Modify the stop emoji for ButtonNavigator.

  • Add additional validation for slash command options.

  • Add lightbulb.utils.build_invite_url.

  • 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 __getitem__ implementation for OptionsProxy.

  • Add lightbulb.app.BotApp.sync_application_commands.

  • Add support for sending of attachment(s) within interaction initial responses.

  • Add typing overloads to Context.respond.

  • Add lightbulb.app.BotApp.create_task.