Skip to content
This repository has been archived by the owner on Feb 3, 2025. It is now read-only.

0.3.0

Compare
Choose a tag to compare
@Kenny2github Kenny2github released this 19 Feb 02:37

Changelogs are since 0.2.3

New Stuff

  • @Group.default on top of @Group.slash_cmd marks a subcommand as the one called when the base group is invoked.
  • Choice.from_data, which is called on each item of the choices argument to Option() as well. See the docs.

Changes

  • default behavior is fully clarified now, but not currently enabled. I was hoping that the behavior would be pushed before I made a stable release, but further API changes have made that impossible.
  • This means that Option.default is fully removed now.
  • Since calling a base group translates into calling the default subcommand, the Group.coro is now deprived of an original jurisdiction. Final behavior is that all parent coros will be called in order of increasing child levels before the command is invoked.
  • Likewise, the in_addition argument no longer has any meaning and has been removed.

Fixes

  • Actual Python annotations for classes, instead of just doc descriptions.
  • in_addition is removed, so remove it from the demo.
  • slash.__all__ is now defined.
  • Support forward reference annotations.
  • Context.send now returns the message object like it should.
  • Command() now raises a ValueError if no description is provided or can be inferred.
  • Explicitly passing debug_guild=None no longer errors.