v3.0.0-alpha.15 | Added anonymous handlers, hotfixes
Overview
Added anonymous handlers, hotfixes
Allow anonymous handlers if type-safe binding exists (#176)
This allows you to not set a name on annotated methods which are reference-able using a callable reference.
bindTo
JDAButtonListener
(defaults toFullyQualifiedClassName.methodName
)JDASelectMenuListener
(defaults toFullyQualifiedClassName.methodName
)
timeout
ComponentTimeoutHandler
(defaults toFullyQualifiedClassName.methodName
)GroupTimeoutHandler
(defaults toFullyQualifiedClassName.methodName
)
autocompleteByFunction
AutocompleteHandler
(defaults tonull
)
Changes
Dependencies
- Kotlin: 2.0.0-RC2 -> 2.0.0
Built-in resolvers
- [Breaking] Removed support for text command options on
Resolvers.enumResolver
, as they were inconsistent with other option types and are,
in general, awkward to use for an user, much rather let you define what gets mapped to which entry - [Small breaking] Improved usages of
enumResolver
, uses builder
Misc
- Warn when a timeout is set on
CoroutineEventManager
(as it is ignored)
Removals
ResolverContainer
is now internal, as it wasn't really usable in the first place, use service factories to register your resolver(s) (factories)
Fixes
Components
- Fixed missing dependency exception when components were not used
Don't hesitate to check out the changelogs and the wiki.
Full Changelog: v3.0.0-alpha.14...v3.0.0-alpha.15