Skip to content

Update dependency net.dv8tion:JDA to v5.6.1 #993

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 26, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
net.dv8tion:JDA 5.2.2 -> 5.6.1 age adoption passing confidence

Release Notes

discord-jda/JDA (net.dv8tion:JDA)

v5.6.1

Compare Source

Bug Fixes

Full Changelog: discord-jda/JDA@v5.6.0...v5.6.1

Installation

Gradle

repositories {
    mavenCentral()
}
dependencies {
    implementation("net.dv8tion:JDA:5.6.1")
}

Maven

<dependency>
    <groupId>net.dv8tion</groupId>
    <artifactId>JDA</artifactId>
    <version>5.6.1</version> 
</dependency>

v5.6.0: | ApplicationManager and minor improvements

Compare Source

Overview

This release introduces the ApplicationManager, which can be used to update the application's description and other settings through JDA.

New Features

Changes

Bug Fixes

Full Changelog: discord-jda/JDA@v5.5.1...v5.6.0

Installation

Gradle

repositories {
    mavenCentral()
}
dependencies {
    implementation("net.dv8tion:JDA:5.6.0")
}

Maven

<dependency>
    <groupId>net.dv8tion</groupId>
    <artifactId>JDA</artifactId>
    <version>5.6.0</version> 
</dependency>

v5.5.1: | Bug fixes and performance improvements

Compare Source

Overview

This is a small release, including a bug fix for editCommand and editCommandById, as well as some performance improvements for looking up members by roles.

Additionally, you can now create threads with a custom slowmode.

New Features

Bug Fixes

Full Changelog: discord-jda/JDA@v5.5.0...v5.5.1

Installation

Gradle

repositories {
    mavenCentral()
}
dependencies {
    implementation("net.dv8tion:JDA:5.5.1")
}

Maven

<dependency>
    <groupId>net.dv8tion</groupId>
    <artifactId>JDA</artifactId>
    <version>5.5.1</version> 
</dependency>

v5.5.0: | Improved voice state cache and file proxies

Compare Source

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.

@&#8203;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

Changes

Bug Fixes

Full Changelog: discord-jda/JDA@v5.4.0...v5.5.0

Installation

Gradle

repositories {
    mavenCentral()
}
dependencies {
    implementation("net.dv8tion:JDA:5.5.0")
}

Maven

<dependency>
    <groupId>net.dv8tion</groupId>
    <artifactId>JDA</artifactId>
    <version>5.5.0</version> 
</dependency>

v5.4.0: | Interaction callback response and security incidents

Compare Source

Access the created or updated message from interaction replies (#​2798)

You can now use InteractionHook#getCallbackResponse to access the messages created by interaction replies.

@&#8203;Override
public void onSlashCommandInteraction(SlashCommandInteractionEvent event) {
  event.reply("React with your favorite emoji")
    .map(hook -> hook.getCallbackResponse().getMessage())
    .flatMap(message -> message.addReaction(emoji))
    .queue();
}

Previously, this could be done using an additional retrieveOriginal request. To reduce requests and improve responsiveness, we recommend preferring this new getter instead.

Guild security incidents (#​2577)

With guild security incidents, you can now be aware when Discord detects raids or spam in direct messages in a guild. These detections are available with Guild#getSecurityIncidentDetections and are updated with GuildUpdateSecurityIncidentDetectionsEvent.

Additionally, you can modify the security incident actions to temporarily pause invites or disable direct messages in your guild. See Guild#modifySecurityIncidents for details.

guild.modifySecurityIncidents(SecurityIncidentActions.enabled(
        // Pause invites for 2 hours
        OffsetDateTime.now().plusHours(2),
        // Disable direct messages for 1 hour
        OffsetDateTime.now().plusHours(1)
)).queue();

// Or disable security incident actions prematurely
guild.modifySecurityIncidents(SecurityIncidentActions.disabled()).queue();

New Features

Changes

Bug Fixes

Full Changelog: discord-jda/JDA@v5.3.2...v5.4.0

Installation

Gradle

repositories {
    mavenCentral()
}
dependencies {
    implementation("net.dv8tion:JDA:5.4.0")
}

Maven

<dependency>
    <groupId>net.dv8tion</groupId>
    <artifactId>JDA</artifactId>
    <version>5.4.0</version> 
</dependency>

v5.3.2: | Bug fix for PrivateChannel#getName

Compare Source

Overview

Small bug fix release.

Bug Fixes

Full Changelog: discord-jda/JDA@v5.3.1...v5.3.2

Installation

Gradle

repositories {
    mavenCentral()
}
dependencies {
    implementation("net.dv8tion:JDA:5.3.2")
}

Maven

<dependency>
    <groupId>net.dv8tion</groupId>
    <artifactId>JDA</artifactId>
    <version>5.3.2</version> 
</dependency>

v5.3.1: | Bug fixes

Compare Source

Overview

Small bug fix release due to API changes regarding user-installed applications.

Bug Fixes

Full Changelog: discord-jda/JDA@v5.3.0...v5.3.1

Installation

Gradle

repositories {
    mavenCentral()
}
dependencies {
    implementation("net.dv8tion:JDA:5.3.1")
}

Maven

<dependency>
    <groupId>net.dv8tion</groupId>
    <artifactId>JDA</artifactId>
    <version>5.3.1</version> 
</dependency>

v5.3.0: | User-Installable Apps

Compare Source

Overview

After many months of waiting, this release finally adds support for user-installable apps. This will allow you to make use of interactions (and especially commands) anywhere on Discord, by installing the application on a user directly instead of a guild.

Creating User-Installable Apps

To create a user-installable app, you first have to enable the feature in your application dashboard in the installation settings:

firefox_X9eJoKZ88K

Once enabled, you can create user-installable commands, by changing the integration types:

Commands.slash("say", "Makes the bot say what you tell it to")
// Allow the command to be used anywhere (Bot DMs, Guild, Friend DMs, Group DMs)
  .setContexts(InteractionContextType.ALL) 
// Allow the command to be installed on users instead of guilds
  .setIntegrationTypes(IntegrationType.USER_INSTALL) 
  .addOption(STRING, "content", "What the bot should say", true)
Installing to a User

To actually install your app to a user, you can use the generator provided by discord. In the OAuth2 URL Generator, change the integration type to User Install:

firefox_VGe9NK4Xld

The generated link, can now be used to install your application to the authorizing user.

image

Detached Guilds / Roles / Channels / Members

This comes with a few changes to expectations around JDA functionality. Since interactions can now come from anywhere on Discord, some features aren't available in certain contexts.

Some entities can now appear as Detachable Entity, which essentially means that they come from a guild or private channel, that your bot is not directly involved in.

For instance, if a command is installed on a user and that command is used in a guild, your bot is not necessarily a member of that guild. Since the bot is not a member, it only has access to the guild context, that the interaction event provides. Many features such as channels, roles, or members are not accessible without being an actual member of the guild. If you try to use or access anything that isn't accessible, JDA will throw a new DetachedEntityException.

New Features

Full Changelog: discord-jda/JDA@v5.2.3...v5.3.0

Installation

Gradle

repositories {
    mavenCentral()
}
dependencies {
    implementation("net.dv8tion:JDA:5.3.0")
}

Maven

<dependency>
    <groupId>net.dv8tion</groupId>
    <artifactId>JDA</artifactId>
    <version>5.3.0</version> 
</dependency>

v5.2.3

Compare Source

Small bug fix release.

Bug Fixes

Changes

Full Changelog: discord-jda/JDA@v5.2.2...v5.2.3

Installation

Gradle

repositories {
    mavenCentral()
}
dependencies {
    implementation("net.dv8tion:JDA:5.2.3")
}

Maven

<dependency>
    <groupId>net.dv8tion</groupId>
    <artifactId>JDA</artifactId>
    <version>5.2.3</version> 
</dependency>

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/net.dv8tion-jda-5.x branch 6 times, most recently from 414041a to c4a8997 Compare February 2, 2025 05:39
@renovate renovate bot changed the title Update dependency net.dv8tion:JDA to v5.2.3 Update dependency net.dv8tion:JDA to v5.3.0 Feb 2, 2025
@renovate renovate bot force-pushed the renovate/net.dv8tion-jda-5.x branch 4 times, most recently from d09a2d4 to 72b0e5c Compare February 8, 2025 19:34
@renovate renovate bot force-pushed the renovate/net.dv8tion-jda-5.x branch 4 times, most recently from 8d83cfc to ee0a0b7 Compare February 15, 2025 02:01
@renovate renovate bot force-pushed the renovate/net.dv8tion-jda-5.x branch 8 times, most recently from aa0515b to 8ee2745 Compare February 23, 2025 01:41
@renovate renovate bot force-pushed the renovate/net.dv8tion-jda-5.x branch 4 times, most recently from f85e46c to 20f3ddf Compare February 26, 2025 06:28
@renovate renovate bot force-pushed the renovate/net.dv8tion-jda-5.x branch 3 times, most recently from 38a0bfc to e4ffd26 Compare March 7, 2025 18:44
@renovate renovate bot force-pushed the renovate/net.dv8tion-jda-5.x branch from c580447 to 10f22ef Compare April 27, 2025 17:59
@renovate renovate bot changed the title Update dependency net.dv8tion:JDA to v5.4.0 Update dependency net.dv8tion:JDA to v5.5.0 Apr 27, 2025
@renovate renovate bot force-pushed the renovate/net.dv8tion-jda-5.x branch 8 times, most recently from 70bb5a9 to 05f669c Compare May 3, 2025 14:25
@renovate renovate bot changed the title Update dependency net.dv8tion:JDA to v5.5.0 Update dependency net.dv8tion:JDA to v5.5.1 May 3, 2025
@renovate renovate bot force-pushed the renovate/net.dv8tion-jda-5.x branch 2 times, most recently from 22bc0c1 to 9a8c3db Compare May 11, 2025 10:36
@renovate renovate bot force-pushed the renovate/net.dv8tion-jda-5.x branch 5 times, most recently from f7ce3be to 15eb9a5 Compare May 26, 2025 14:26
@renovate renovate bot force-pushed the renovate/net.dv8tion-jda-5.x branch from 15eb9a5 to f5bc444 Compare May 30, 2025 06:45
@renovate renovate bot force-pushed the renovate/net.dv8tion-jda-5.x branch 2 times, most recently from 4ec2cb3 to db5d5e4 Compare June 7, 2025 21:43
@renovate renovate bot changed the title Update dependency net.dv8tion:JDA to v5.5.1 Update dependency net.dv8tion:JDA to v5.6.0 Jun 7, 2025
@renovate renovate bot force-pushed the renovate/net.dv8tion-jda-5.x branch from db5d5e4 to 2bb52ca Compare June 8, 2025 21:00
@renovate renovate bot changed the title Update dependency net.dv8tion:JDA to v5.6.0 Update dependency net.dv8tion:JDA to v5.6.1 Jun 8, 2025
@renovate renovate bot force-pushed the renovate/net.dv8tion-jda-5.x branch 4 times, most recently from e58a5ea to e6f4f05 Compare June 10, 2025 16:34
@renovate renovate bot force-pushed the renovate/net.dv8tion-jda-5.x branch from e6f4f05 to a26d84e Compare June 10, 2025 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants