Skip to content

v2.1.1a1

Choose a tag to compare

@FasterSpeeding FasterSpeeding released this 09 Oct 18:15
· 834 commits to master since this release
6c4206b

2.1.1a1 - 2021-10-09

Added

  • ShlexParser.add_option and add_argument methods which mirror the behaviour of with_option and with_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_ids argument to both Client.declare_global_commands, Client.__init__ and Client.declare_slash_commands to allow specifying the IDs of commands which are being updated.
  • Client.remove_component_by_name and get_component_by_name.
  • Client.unload_modules and Client.reload_modules to unload and reload from modules which also declare a unloader.
  • tanjun.as_unloader decorator 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.ColorConverter and conversion.SnowflakeConverter with to_snowflake and to_color pure function implementations.
  • Client.load_modules now 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_command and as_slash_command_group.
  • Renamed set_global_commands (both the Client method and init parameter) to declare_global_commands.

Removed

  • add_converter and remove_converter from Parameter.
  • The BaseConverter classes are no-longer included in conversion.__all__ meaning that they are no-longer documented.