Skip to content

v3.0.0-alpha.7 | Package change, enhanced resolver factories

Pre-release
Pre-release
Compare
Choose a tag to compare
@freya022 freya022 released this 21 Oct 10:26
· 835 commits to 3.X since this release
f060b10

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 if JDAService is not present

Changes

  • Updated kotlin-logging to 5.X
  • Changed base package from com.freya02 to io.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 and BContext
  • (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 a path array
    • Still limited to 3 path components

Additions

  • Added CommandBuilder#cooldown extension
  • Added BConfig#queryLogThreshold, logs a query on WARN 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's Duration
  • 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