Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
JDA-5.5.0-sources.jar.asc | 2025-04-27 | 660 Bytes | |
JDA-5.5.0-sources.jar | 2025-04-27 | 2.0 MB | |
JDA-5.5.0-javadoc.jar.asc | 2025-04-27 | 660 Bytes | |
JDA-5.5.0-javadoc.jar | 2025-04-27 | 4.1 MB | |
JDA-5.5.0.jar.asc | 2025-04-27 | 660 Bytes | |
JDA-5.5.0.jar | 2025-04-27 | 2.2 MB | |
JDA-5.5.0-withDependencies-no-opus.jar | 2025-04-27 | 15.7 MB | |
JDA-5.5.0-withDependencies-min.jar | 2025-04-27 | 8.2 MB | |
JDA-5.5.0-withDependencies.jar | 2025-04-27 | 19.1 MB | |
README.md | 2025-04-27 | 2.7 kB | |
v5.5.0 _ Improved voice state cache and file proxies source code.tar.gz | 2025-04-27 | 1.1 MB | |
v5.5.0 _ Improved voice state cache and file proxies source code.zip | 2025-04-27 | 2.3 MB | |
Totals: 12 Items | 54.7 MB | 0 |
Changes to voice state cache (#2835)
Voice states are now cached independently of guild members. JDA can now detect when a member connects or disconnects from an audio channel, even when the member is not currently cached.
With this change, you can technically use MemberCachePolicy.NONE
and will still receive voice join / leave events, as long as CacheFlag.VOICE_STATE
is enabled.
To reduce the memory footprint, we now only cache voice states if the member is connected to an audio channel. While disconnected, we will not keep the voice state cached, meaning we lose track of muted/deafend state and return an "empty" voice state for Member#getVoiceState
.
Improvements to FileProxy (#2782 and [#2727])
The FileProxy, ImageProxy, and AttachmentProxy now all support downloadAsFileUpload to easily stream a Discord proxies URL to a message.
:::java
@Override
public void onMessageReceived(MessageReceivedEvent event) {
List<Message.Attachment> attachments = event.getMessage().getAttachments();
List<FileUpload> uploads = attachments.stream()
.map(attachment ->
attachment
.getProxy()
.downloadAsFileUpload(attachment.getWidth(), attachment.getHeight()))
.collect(Collectors.toList());
event.getChannel().sendFiles(uploads).queue();
}
New Features
- Add
downloadAsFileUpload
to file proxies by @freya022 in https://github.com/discord-jda/JDA/pull/2782 - Add
ImageProxy#downloadAsIcon
by @freya022 in https://github.com/discord-jda/JDA/pull/2727
Changes
- Move voice state cache to guild by @MinnDevelopment in https://github.com/discord-jda/JDA/pull/2835
Bug Fixes
- Allow \ in invite links by @rtm516 in https://github.com/discord-jda/JDA/pull/2796
- Fix checks in CommandEditAction by @MinnDevelopment in https://github.com/discord-jda/JDA/pull/2837
Full Changelog: https://github.com/discord-jda/JDA/compare/v5.4.0...v5.5.0
Installation
Gradle
:::gradle
repositories {
mavenCentral()
}
dependencies {
implementation("net.dv8tion:JDA:5.5.0")
}
Maven
:::xml
<dependency>
<groupId>net.dv8tion</groupId>
<artifactId>JDA</artifactId>
<version>5.5.0</version>
</dependency>