Skip to content

v3.0.0-alpha.10 | Text command suggestions, exception context and primary service providers

Pre-release
Pre-release
Compare
Choose a tag to compare
@freya022 freya022 released this 04 Jan 09:06
· 742 commits to 3.X since this release
5fc3b15

Overview

Added text command suggestions, extra exception context and primary service providers.

Don't hesitate to check out the changelogs and the wiki as they contain more details.

Fixes

  • Added back support for regional indicator emojis (Commit)
  • Prepared statements returns a nullable ResultSet
  • Skip adding the "Usages" header in help content if there are no variations
  • Services missing an injected dependency (such as JDA) can always be retrieved

Changes

  • Updated JDA-KTX to the maven-central version: club.minnced:jda-ktx:0.11.0-beta.19
    • You no longer need the Jitpack repository
  • Deprecated BBuilder entry point, replaced by BotCommands
  • Make entry point return BContext
  • Application command cache is now stored in:
    • %appdata%/BotCommands on Windows
    • /var/tmp/BotCommands on Unix
  • BContext#getPrefix is nullable
    • null if no prefix has been added and ping-as-prefix is not configured, in which case it is logged

Additions

  • Added null variants in EmojiUtils
  • Added "primary" service providers
    • A primary service provider is prioritized over a normal service provider
    • If multiple service providers exist, only one must be usable, or, only one must be marked primary (using @Primary).
  • Exposed #setParameters on prepared statements
    • This allows setting parameters when using batch statements
  • Reimplemented text command suggestions (#143)
    • Enabled by default
    • Hidden text commands behave the same as if the command didn't exist at all
    • Added TextSuggestionSupplier and a default implementation, allows command filtering and sorting
  • Add extra context to uncaught exceptions in commands/component handlers (#144)
    • Improved message format
    • Improved exception cleaning
    • Any context info can be added in BContext#dispatchException
  • Added DBResult#stream (Mainly for Java users)

Full Changelog: v3.0.0-alpha.9...v3.0.0-alpha.10