Skip to content

v2.5.4a1

Choose a tag to compare

@FasterSpeeding FasterSpeeding released this 11 Aug 17:17
· 451 commits to master since this release
1afe0ef

2.5.4a1 - 2022-08-11

Added

  • V2 application permissions and dms_enabled config to slash and menu commands.
  • Signature name validation for command options.
  • wrapped_command properties to tanjun.SlashCommand, tanjun.MessageCommand and tanjun.MenuCommand for interospecting wrapped commands.
  • key argument to the add_{}_slash_option methods and with_{}_slash_option functions to allow the argument's name in the callback's signature to be different from the option's declared name.
  • Signature type-hint based command option declaration for both message and slash commands. More information about this can be found in tanjun.annotations.
  • Allow multiple events to be passed to Client.with_listener/Component.with_listener in one call.

Changed

  • If no events are passed to Client.with_listener/Component.with_listener it will now try to infer the event type(s) from the callback's type-hints.

Fixed

  • Slash command parent command tracking.