v2.8.0a1
·
361 commits
to master
since this release
2.8.0a1 - 2022-10-16
Added
- Support for specifying
min_lengthandmax_lengthfor slash command string options. - Support for specifying
min_lengthandmax_lengthfor message command parsing options with either no converters or converters which result in acollections.abc.Sizedcompatible value. - Support for specifying the length of a string argument in annotation command declaration through
tanjun.annotations.Length. AutocompleteContext.triggering_namewhich acts likeContext.triggering_name.- Support for localising check responses for application command contexts, and slash command + context menu declarations (names and descriptions).
More information on how this works can be found at https://tanjun.cursed.solutions/usage/#localisation.
Changed
- Bumped the minimum Hikari version to
2.0.0.dev111. - Bumped the minimum Alluka version to
0.1.2. tanjun.dependencies.HotReloader.add_to_clientnow returnsNone.
Fixed
- Make
tanjun.commands.slash.SlashCommandGroup.as_sub_command's typing more flexible to allow decorating other command objects. tanjun.context.slash.SlashContext.triggering_namenow returns the full triggering command name for sub-commands instead of just the top level command's name.- Optimise
tanjun.checks.OwnPermissionCheckto usecontext.app_permissionsinstead of calculating the bot's permissions for context menu command calls.
Removed
- The generic value field from
BaseConverter.