This repository was archived by the owner on Feb 3, 2025. It is now read-only.
0.3.0
Changelogs are since 0.2.3
New Stuff
@Group.defaulton top of@Group.slash_cmdmarks a subcommand as the one called when the base group is invoked.Choice.from_data, which is called on each item of thechoicesargument toOption()as well. See the docs.
Changes
defaultbehavior 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.defaultis fully removed now. - Since calling a base group translates into calling the
defaultsubcommand, theGroup.corois 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_additionargument no longer has any meaning and has been removed.
Fixes
- Actual Python annotations for classes, instead of just doc descriptions.
in_additionis removed, so remove it from the demo.slash.__all__is now defined.- Support forward reference annotations.
Context.sendnow returns the message object like it should.Command()now raises aValueErrorif no description is provided or can be inferred.- Explicitly passing
debug_guild=Noneno longer errors.