v3.0.0-alpha.7 | Package change, enhanced resolver factories
Pre-release
Pre-release
Overview
Changed the base package, added predicate-based resolver factories, more extensions and fixes.
Don't hesitate to check out the changelogs as they contain more details.
Fixes
- Fixed some potential unknown events (commit)
- Fixed timeout caused by
Database#fetchConnection
not suspending before a connection is available (commit) - Fixed custom conditions on service factories
- Fixed default descriptions not being retrieved for DSL-declared commands (commit)
RequiredIntents
properly throws ifJDAService
is not present
Changes
- Updated
kotlin-logging
to 5.X - Changed base package from
com.freya02
toio.github.freya022
- A simple Find & Replace is enough to fix this
- Bot templates now exist as GitHub repository templates, both in Java and Kotlin
- Changed packages of
GlobalExceptionHandlerAdapter
,InstanceSupplier
,DefaultMessages
,RateLimitScope
andBContext
- (Java users) Renamed some primary annotations values to
value
, avoiding named parameters - Revamped the built-in command-specific help embed
- Replaced
name
/group
/subcommand
in@JDATextCommand
with apath
array- Still limited to 3 path components
Additions
- Added
CommandBuilder#cooldown
extension - Added
BConfig#queryLogThreshold
, logs a query onWARN
if it takes longer than the configured duration - Added per-variant usage and examples on text commands
- Added predicate-based parameter resolver factories
- Allows you to return parameter resolvers based on custom conditions, see the changelog and docs for more details
- Added
RestAction#timeout
using Kotlin'sDuration
- Added
deleteDelayed
extensions for webhook replies/edits - Added
IThreadContainer#retrieveThreadChannelByIdOrNull
(commit) - Added
BContext
to framework events
Removals
- Removed
BContext
from resolvers,GlobalExceptionHandler(Adapter)
,DynamicSupplier
- Retrieve the context using dependency injection instead
Full Changelog: v3.0.0-alpha.6...v3.0.0-alpha.7