Skip to content

v3.0.0-beta.10 | Hot restarting module

Choose a tag to compare

@freya022 freya022 released this 15 Mar 14:53
24b5b83

JDA

Overview

This release adds hot restarting and a few fixes. The wiki has also been greatly updated, feedback is welcome.

Added hot restarting (#232)

This new development-only module restarts your app automatically upon build, while keeping the same JVM, leading to much faster restarts, as it doesn't need to recompile most of the code.

Look at the README for more details.


Deprecations

Localization

  • getDiscordLocale of all locale providers (UserLocaleProvider, GuildLocaleProvider, TextCommandLocaleProvider) were deprecated
    • You must implement getLocale instead

Event waiter

  • BConfig#ignoredEventIntents was deprecated
    • This has been replaced by EventWaiterBuilder#ignoreMissingIntents

Changes

  • Updated to JDA 6.3.2
  • Updated to Jackson 2.21.1

Fixes

Database

  • Fixed schema not being reset-ed correctly when returning to the connection pool in some cases

Don't hesitate to check out the examples and the wiki.

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


Installation

As a reminder, the minimum Java version supported is Java 17.

Kotlin Gradle

repositories {
    mavenCentral()
}

dependencies {
    implementation("io.github.freya022:BotCommands:3.0.0-beta.10")
}

Maven

<dependency>
    <groupId>io.github.freya022</groupId>
    <artifactId>BotCommands</artifactId>
    <version>3.0.0-beta.10</version>
</dependency>