Repository navigation
v2.1.1a1
·
834 commits
to master
since this release
2.1.1a1 - 2021-10-09
Added
ShlexParser.add_optionandadd_argumentmethods which mirror the behaviour ofwith_optionandwith_argument.- Fluent interface coverage has been increased to now include remove methods and parsing interfaces.
- Support for specifying which channel types you want with slash channel type options.
custom_idsargument to bothClient.declare_global_commands,Client.__init__andClient.declare_slash_commandsto allow specifying the IDs of commands which are being updated.Client.remove_component_by_nameandget_component_by_name.Client.unload_modulesandClient.reload_modulesto unload and reload from modules which also declare a unloader.tanjun.as_unloaderdecorator to enable declaring unloaders for modules.- Let a Sequence of guild ids/objects be passed for
Client.__init__'s declare_global_commands parameter (although custom_ids isn't supported in this instance).
Changed
- Client now enforces that all registered component names are unique within the client.
- Bumped minimum hikari version to 2.0.0.dev103.
- The default parser error handler is now set as Client.hooks (not Client.message_hooks) meaning that it runs for all commands not just message commands.
- Replace
conversion.ColorConverterandconversion.SnowflakeConverterwithto_snowflakeandto_colorpure function implementations. Client.load_modulesnow errors if no loader descriptor is found.
Deprecated
- Calling set_tracked_command with a command ID.
- Passing command_id to
SlashCommand.__init__,SlashCommandGroup.__init__,as_slash_commandandas_slash_command_group. - Renamed
set_global_commands(both the Client method and init parameter) to declare_global_commands.
Removed
add_converterandremove_converterfrom Parameter.- The
BaseConverterclasses are no-longer included inconversion.__all__meaning that they are no-longer documented.