v5.0.0-beta.3
Overview
Small release to fix a few bugs and introduce support for new API features.
GIF Sticker Support
Discord is adding support to create stickers with GIFs in the future. This release already covers support for receiving and creating them in advance of the rollout. Note that it will currently not work since the API for GIF stickers has not yet been deployed, in the meantime you will receive an invalid asset error.
Reverse Audit-Log Iteration
You can now use PaginationAction#reverse
on Guild#retrieveAuditLogs
. This allows you to iterate from the oldest entry to the newest one.
Removing Options/Subcommands from SlashCommands
You can now use conditional remove operations on SlashCommandData
to remove options and slash commands.
Example:
SlashCommandData command = SlashCommandData.fromData(json); // parsing an existing command from json
command.removeOptions(o -> o.isRequired()); // Removing all required options
Note: You still have to pass this updated command to discord using upsertCommand
or updateCommands
!
New Features
- Add support for gif stickers by @MinnDevelopment in #2377
- Add support for reverse audit-log iteration by @MinnDevelopment in #2370
- Improve implementation of command data by @MinnDevelopment in #2258
Changes
- Replace lock code with atomic int by @MinnDevelopment in #2359
- Update okhttp to 4.10.0 by @MinnDevelopment in #2382
- Change handling of speaking updates in voice connections by @MinnDevelopment in #2240
Bug Fixes
- Fix welcome channel parsing when no emoji is used by @freya022 in #2356
- Fix issues with ChannelManager#setPinned and setTagRequired by @MinnDevelopment in #2364
Full Changelog: v5.0.0-beta.2...v5.0.0-beta.3
Installation
Gradle
repositories {
mavenCentral()
}
dependencies {
implementation("net.dv8tion:JDA:5.0.0-beta.3")
}
Maven
<dependency>
<groupId>net.dv8tion</groupId>
<artifactId>JDA</artifactId>
<version>5.0.0-beta.3</version>
</dependency>