Releases: tandemdude/hikari-lightbulb
v2.3.3
-
bucket
attribute has been added tolightbulb.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. UseAutocompleteChoiceBuilder
instead.
v2.3.2
Potentially Breaking Changes
-
Module
lightbulb.utils.parser
has been moved up a level tolightbulb.parser
. -
OptionsProxy
will now raise anAttributeError
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
andmax_length
for command options. -
Fix deferral of slash subcommands not working as intended.
v2.3.1
Potentially Breaking Changes
-
lightbulb.cooldown_algorithms.CooldownStatus
has been moved from thebuckets
module to the
cooldown_algorithms
module. -
commands_run
attribute has been removed from thelightbulb.buckets.Bucket
class.
Other Changes
-
Add
lightbulb.commands.base.CommandLike.nsfw
andnsfw
kwarg inlightbulb.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 version2.4.0
. -
Add
lightbulb.context.base.Context.respond_with_modal
. Note that this will not work if called
on an instance oflightbulb.context.prefix.PrefixContext
. -
Add
lightbulb.plugins.Plugin.listeners
. -
Improve
lightbulb.converters.special.MessageConverter
to support conversion ofchannelid-messageid
format. -
Implement multiple built-in cooldown algorithms which can be specified when adding a cooldown to a command.
v2.3.0
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
-
Add support for Python 3.11.
-
Bump hikari requirement to
2.0.0.dev111
. -
Allow a user to iterate through
ctx.options
usingOptionsProxy.items()
.
v2.2.4
- Add
lightbulb.utils.DataStore.get_as
to improve ability ofDataStore
to be type-complete
v2.2.3
- Implement application command permissions V2
v2.2.2
-
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
-
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
tolightbulb.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
-
Fix option serialiser not correctly detecting changes for value for
min|max_value
. -
Add
delete_after
kwarg toContext.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
andauto_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 forOptionsProxy
. -
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
.