Deprecations
- Deprecate
Client.set_startup_hookandClient.set_shutdown_hook. These will be removed inv2.0.0. Use the newly addedClient.add_startup_hookandClient.add_shutdown_hookinstead.
Changes
- Add options with converters. These options do not exist on Discord's end, arc simply tries to convert a more primitive optiontype into the requested one, failing if it is not possible.
- Add new optiontypes with converters for
hikari.Memberandhikari.Color. - Add
arc.OptionConverterFailureErrorwhen a converter fails to convert an option value. - Add support for injecting dependencies contextually to command callbacks, hooks, and error handlers via
Client.add_injection_hookandClient.remove_injection_hook. - Add support for multiple startup & shutdown hooks via
Client.add_startup_hookandClient.add_shutdown_hookrespectively. - Inject dependencies by default into pre/post-execution hooks & error handlers.
Fixes
- Fix client hooks being executed twice if a command is added to a plugin.
- Fix options mapping not taking name overrides into account.
Misc
- Bump alluka to
0.3+.