Skip to content

v3.0.0a13

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions 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 to None.
    • Implement injection 'meta annotations' (Try[] and If[]) allowing modifying of the fall-back behaviour.

    (#454)

  • Add name argument to the hook() decorator and name attribute to ExecutionHook.

  • 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.