v2.5.4a1
·
451 commits
to master
since this release
2.5.4a1 - 2022-08-11
Added
- V2 application permissions and
dms_enabledconfig to slash and menu commands. - Signature name validation for command options.
wrapped_commandproperties totanjun.SlashCommand,tanjun.MessageCommandandtanjun.MenuCommandfor interospecting wrapped commands.keyargument to theadd_{}_slash_optionmethods andwith_{}_slash_optionfunctions 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_listenerin one call.
Changed
- If no events are passed to
Client.with_listener/Component.with_listenerit will now try to infer the event type(s) from the callback's type-hints.
Fixed
- Slash command parent command tracking.