v3.0.0a13
Pre-release
Pre-release
github-actions
released this
30 Sep 10:32
·
50 commits
to master
since this release
Features
-
- Implement injection for union dependencies using
Foo | Bar
. If any of the requested dependencies are not registered, it will fall back to the next in the union. - Implement injection for optional dependencies using
Foo | None
. If all the requested dependencies are not registered, it will fall back toNone
. - Implement injection 'meta annotations' (
Try[]
andIf[]
) allowing modifying of the fall-back behaviour.
(#454)
- Implement injection for union dependencies using
-
Add
name
argument to thehook()
decorator andname
attribute toExecutionHook
. -
Prefab cooldown hooks now register an instance of
CommandCooldown
as a dependency when they are executed.
Bugfixes
- Fix
KeyError
preventing error handlers being loaded from extensions. - Fix menu task exceptions being logged even if they were raised previously.