Skip to content

v0.2.2

Compare
Choose a tag to compare
@FasterSpeeding FasterSpeeding released this 03 Mar 21:53
· 102 commits to master since this release
ce69be2

0.2.2 - 2023-03-03

Added

  • Extended tanjun.SlashCommandGroup impl at tanchan.doc_parse.SlashCommandGroup where the name, and description parameters are now optional and introspected from the callback's docstring by default for SlashCommandGroup.as_sub_command. SlashCommandGroup.make_sub_group also returns a tanchan.doc_parse.SlashCommandGroup instance.
  • Optional description arg to tanchan.doc_parse.as_slash_command to allow overriding the introspected value.

Changed

  • tanchan.doc_parse.as_slash_command is now typed to allow decorating commands which match the abstract types in tanjun.abc, not just the standard impls.
  • A mapping of locales to values can now be passed for name to tanchan.doc_parse.as_slash_command.