This repository has been 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.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 thechoices
argument toOption()
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, theGroup.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 aValueError
if no description is provided or can be inferred.- Explicitly passing
debug_guild=None
no longer errors.