You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Deprecations
DeprecateClient.set_startup_hook and Client.set_shutdown_hook. These will be removed in v2.0.0. Use the newly added Client.add_startup_hook and Client.add_shutdown_hook instead.
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.Member and hikari.Color.
Add arc.OptionConverterFailureError when 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_hook and Client.remove_injection_hook.
Add support for multiple startup & shutdown hooks via Client.add_startup_hook and Client.add_shutdown_hook respectively.
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.