| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| JDA-6.5.0-withDependencies-min.jar | 2026-07-05 | 8.3 MB | |
| JDA-6.5.0-withDependencies.jar | 2026-07-05 | 19.7 MB | |
| JDA-6.5.0-sources.jar | 2026-07-05 | 2.2 MB | |
| JDA-6.5.0-javadoc.jar | 2026-07-05 | 9.1 MB | |
| JDA-6.5.0.jar | 2026-07-05 | 2.5 MB | |
| JDA-6.5.0-withDependencies-no-opus.jar | 2026-07-05 | 16.3 MB | |
| README.md | 2026-07-05 | 2.3 kB | |
| v6.5.0 _ Message Search API source code.tar.gz | 2026-07-05 | 5.4 MB | |
| v6.5.0 _ Message Search API source code.zip | 2026-07-05 | 6.8 MB | |
| Totals: 9 Items | 70.3 MB | 4 | |
Overview
This release adds support for the Message Search API, which allows bots to search messages in a guild. See Guild#searchMessages and MessageSearchAction for detailed documentation.
Example:
:::java
guild.searchMessages()
.attachmentFilenames("cat.png")
.includeAuthorTypes(MessageSearchAction.AuthorType.USER)
.queue(response -> {
if (response.isNotReady()) {
int retryAfter = response.asNotReady().getRetryAfter();
event.reply("The server is still indexing messages, try again later").queue();
}
List<Message> messages = response.asResults().getMessages();
event.reply("Found %s messages of cats!".formatted(messages.size())).queue();
});
Additionally, we made a minor change in the handling for received messages. For messages received in guilds JDA now handles events with missing member objects, which is necessary to handle messages that arrive shortly after a user is banned from the guild. These messages will contain members which are not added to cache and have no roles.
New Features
- Add message search by @freya022 in https://github.com/discord-jda/JDA/pull/3052
- Add attachment flags by @MinnDevelopment in https://github.com/discord-jda/JDA/pull/3109
- Add support for image descriptions in embeds by @MinnDevelopment in https://github.com/discord-jda/JDA/pull/310
Changes
- Handle messages received after ban by @MinnDevelopment in https://github.com/discord-jda/JDA/pull/3103
Full Changelog: https://github.com/discord-jda/JDA/compare/v6.4.2...v6.5.0
Installation
Gradle
:::gradle
repositories {
mavenCentral()
}
dependencies {
implementation("net.dv8tion:JDA:6.5.0")
}
Maven
:::xml
<dependency>
<groupId>net.dv8tion</groupId>
<artifactId>JDA</artifactId>
<version>6.5.0</version>
</dependency>