Skip to content

v3.4.0 | Logger Rewrite - Part II, Message-Rewrite, ShardManager

Compare
Choose a tag to compare
@MinnDevelopment MinnDevelopment released this 20 Dec 11:13
· 1353 commits to master since this release
e837413

We've rewritten major parts of our message handling and sending modules which should improve usability, maintainability, and readability.

The introduction of MessageAction allows to send multiple files in one message and modify
the message before executing the send operation. Additionally it now allows to remove existing embeds using override(true)

event.getChannel().sendMessage("Hello ")
                  .append("World!")
                  .embed(new EmbedBuilder().setDescription("Test").build())
                  .queue( (message) -> message.editMessage("Removed Embed...").override(true).queue() )

With the addition of ShardManager and DefaultShardManagerBuilder you can now use a JDA sharding mechanism for your bot which should decrease the amount of time needed to setup sharding.

ShardManager manager = new DefaultShardManagerBuilder().setToken(MY_TOKEN).addEventListener(new BotListener()).build();

Pull Requests

PR Description
#433 Added PaginationAction#forEachAsync for async iterations
#445 Implemented phone verification (only get) and 50 MiB file limit for nitro accounts
#453 Message Rewrite
#479 Adding ShardedRateLimiter to keep track of global REST rate limit
#480 Adding ChannelManager#setPosition
#490 First pass on GuildAction
#492 SLF4J Logger rewrite part2
#494 Added handling for relationship presence updates
#523 Hotfix zlib fragmentation
#524 role modification changes
#533 Made audio manager cache accessible from JDA instances
#535 Added methods to properly use message history endpoint
#537 Hacktoberfest Changes
#542 General cleanup of documentation and naming conventions
#543 Fixed issues with cache view iterators not being thread-safe
#544 Added new game types
#547 Added first support for viewing the RichPresences of other users
#557 Added MDC
#558 Added ability to get a Guild's features (vip voice, verified, ...)
#559 Added GuildVoiceUpdateEvent to combine leave and move
#563 Add missing null checks in HttpRequestEvent
#567 Updated README and templates
#572 Improve some logic in PermissionUtil
#575 Added some since tags, bumped version, removed old deprecated methods

Thank you all for your contributions!

Versions

Latest verison: Download

The latest release build: 3.4.0_317

Changelog

Downloads for this version are available from the build server:
http://home.dv8tion.net:8080/job/JDA/ or below.

Gradle

repositories {
    jcenter()
}

dependencies {
    compile 'net.dv8tion:JDA:3.4.0_317'
}

Maven

<dependency>
    <groupId>net.dv8tion</groupId>
    <artifactId>JDA</artifactId>
    <version>3.4.0_317</version>
</dependency>


<repository>
    <id>jcenter</id>
    <name>jcenter-bintray</name>
    <url>http://jcenter.bintray.com</url>
</repository>