Update dependency net.dv8tion:JDA to v6 #52

Open
renovate wants to merge 1 commits from renovate/net.dv8tion-jda-6.x into main
Collaborator

This PR contains the following updates:

Package Type Update Change
net.dv8tion:JDA compile major 5.6.16.3.0

Release Notes

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

v6.3.0: | DAVE Protocol Support

Compare Source

Overview

This release adds initial support for the DAVE Protocol.

[!IMPORTANT]
Audio connections without the DAVE Protocol will stop working on March 1st, 2026. If you use JDA to connect to voice channels or stage channels, you will have to update to this release and add the required DAVE Protocol implementation.

Setting up DAVE Protocol in JDA

Since the implementation for DAVE requires native library dependencies, it is not included by default by JDA. We've decided that dependencies related to audio features will no longer be included by default in the future.

Starting with JDA 6.3.0, audio features require additional setup in your JDABuilder or DefaultShardManagerBuilder. Once you have added a dependency that implements DaveSessionFactory, you can configure it in your builder using setAudioModuleConfig:

builder.setAudioModuleConfig(
  new AudioModuleConfig()
    .withDaveSessionFactory(daveSessionFactory)
)

You can use JDAVE, which provides an implementation for this interface. Note that this library requires Java 25 and only supports a few platforms for now. Read the README for setup instructions.

[!WARNING]
This library is still in its early stages and might have some issues. However, I wanted to get this released as soon as possible to allow people to test and report issues, since the deadline is only a few weeks away. I recommend to test this thoroughly before going into production.

There are other libraries still in development that will add support for older java versions, such as libdave-jvm which uses JNI instead of the modern FFM API.

New Features

Full Changelog: https://github.com/discord-jda/JDA/compare/v6.2.1...v6.3.0

Installation

Gradle

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

Maven

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

v6.2.1

Compare Source

Overview

In this release, we have added new compliance tests that automatically validate some of our enums against the Official Discord OpenAPI Specification. This allows us to easily verify the completeness of our enums, which is why we added a lot of new enum constants. In the future, we might use this spec for serialization / deserialization internally, or even expand it to a public REST-only module.

[!IMPORTANT]

Important Announcement: Changes to Audio Connections in March 2026

Discord has announced in their Changelog: Deprecating Non-E2EE Voice Calls, that all voice connections will require End-to-End-Encryption starting March 1st, 2026.

Support for this in JDA has been blocked by Discord's slow release of their library libdave. However, they have finally released a usable C-interface 2 weeks ago. The next feature release of JDA will add a new opt-in interface to support the DAVE protocol and will log warnings and errors if this interface is not implemented. The development for this has started in my pull request: Add support for libdave #​2988.

On March 1st, 2026, all JDA audio connections will require an implementation of DAVE. Users of JDA are responsible to choose or provide their own implementation of this protocol. There are already some work-in-progress implementations that directly use libdave, such as JDAVE (requires Java 25) and libdave-jvm (requires Java 8).

If you are affected by this change, you should start migrating to JDA 6 as soon as possible.

New Features

  • Support retrieving available SKUs via /applications/{application.id}/skus by @​rainbowdashlabs in #​2828
  • Adds new locales: DiscordLocale.ARABIC, DiscordLocale.HEBREW
  • Adds new audit log action types:
    • ActionType.SOUNDBOARD_SOUND_CREATE, ActionType.SOUNDBOARD_SOUND_UPDATE, ActionType.SOUNDBOARD_SOUND_DELETE
    • ActionType.AUTO_MODERATION_QUARANTINE_USER
    • ActionType.CREATOR_MONETIZATION_REQUEST_CREATED, ActionType.CREATOR_MONETIZATION_TERMS_ACCEPTED
    • ActionType.ONBOARDING_PROMPT_CREATE, ActionType.ONBOARDING_PROMPT_UPDATE, ActionType.ONBOARDING_PROMPT_DELETE
    • ActionType.ONBOARDING_CREATE, ActionType.ONBOARDING_UPDATE
    • ActionType.HOME_SETTINGS_CREATE, ActionType.HOME_SETTINGS_UPDATE, ActionType.GUILD_PROFILE_UPDATE
  • Adds AuditLogKey.GUILD_BRAND_COLOR_PRIMARY
  • Adds new audit log target types:
    • TargetType.SOUNDBOARD_SOUND
    • TargetType.ONBOARDING_PROMPT_STRUCTURE
    • TargetType.ONBOARDING
  • Adds ChannelType.GUILD_DIRECTORY

Changes

Full Changelog: https://github.com/discord-jda/JDA/compare/v6.2.0...v6.2.1

Installation

Gradle

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

Maven

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

v6.2.0

Compare Source

Overview

This release includes a permission change that will go into effect on February 26th, 2026. Any versions older than this will not have the correct permission checks for the new rules, or only partially support the new rules.

Permission Changes (#​2967)

After the deadline of February 26th, 2026, some permissions will lose capabilities in favor of new permissions.

  • MESSAGE_MANAGE will no longer allow users to Pin/Unpin Messages or Bypass Slowmode. Instead, the new BYPASS_SLOWMODE and PIN_MESSAGES permissions have been added.
  • MANAGE_GUILD_EXPRESSIONS will no longer allow users to Create Emojis/Stickers. Instead, the new CREATE_GUILD_EXPRESSIONS permission has been added.
  • MANAGE_EVENTS will no longer allow users to Create Scheduled Events. Instead, the new CREATE_SCHEDULED_EVENTS permission has been added.

See the Discord Changelog for details.

Retrieve Role Member Counts (#​2973)

The guild role member count can now be retrieved with Guild#retrieveRoleMemberCounts.

Example:

guild.retrieveRoleMemberCounts().queue(counts -> {
    int boostRoleMemberCount = counts.get(guild.getBoostRole());

    IO.println("This guild has " + boostRoleMemberCount + " boosters!");
});
Enhanced Role Colors (#​2975)

You can now access and modify the Gradient or Holographic role colors, a feature unlocked through boosting a guild.

Example:

guild.createRole()
     .setName("Gradient Role")
     .setGradientColors(0x0000FF, 0x00FF00)
     .queue(role -> {
         IO.println("Is role a gradient? " + role.getColors().isGradient());
         IO.println("Primary: %X".formatted(role.getColors().getPrimaryRaw()));
         IO.println("Secondary: %X".formatted(role.getColors().getSecondaryRaw()));
     });

New Features

Changes

Full Changelog: https://github.com/discord-jda/JDA/compare/v6.1.3...v6.2.0

Installation

Gradle

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

Maven

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

v6.1.3

Compare Source

Bug Fixes

Full Changelog: https://github.com/discord-jda/JDA/compare/v6.1.2...v6.1.3

Installation

Gradle

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

Maven

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

v6.1.2

Compare Source

Bug Fixes

Full Changelog: https://github.com/discord-jda/JDA/compare/v6.1.1...v6.1.2

Installation

Gradle

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

Maven

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

v6.1.1

Compare Source

New Features

Bug Fixes

Full Changelog: https://github.com/discord-jda/JDA/compare/v6.1.0...v6.1.1

Installation

Gradle

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

Maven

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

v6.1.0: | Modal File Uploads

Overview

This release primarily adds support for file uploads in modals.

Creating a Modal accepting file uploads
Modal.create("modal-id", "Banner Update")
  .addComponents(Label.of("Banner Image", AttachmentUpload.of("banner-file")))
  .build()
Using the uploaded file
@&#8203;Override
public void onModalInteraction(@&#8203;NotNull ModalInteractionEvent event) {
    event.reply("The banner is being updated.").setEphemeral(true).queue();
    
    Message.Attachment attachment = event.getValue("cat-img").getAsAttachmentList().get(0);
    attachment.getProxy()
        .downloadAsIcon()
        .thenCompose(icon -> event.getGuild().getSelfMember().getManager().setBanner(icon).submit())
        .exceptionally(e -> {
            RestAction.getDefaultFailure().accept(e);
            return null;
        });
}

New Features

Full Changelog: https://github.com/discord-jda/JDA/compare/v6.0.0...v6.1.0

Installation

Gradle

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

Maven

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

v6.0.0: | New Component API

Compare Source

Overview

This is the stable release of JDA 6.0.0. To avoid repeating the same information again, please look at the release notes of the release candidates for detailed explanations of the breaking changes and new features.

Release Candidates
  1. v6.0.0-rc.1 New Components
  2. v6.0.0-rc.2 New Pin Pagination API
  3. v6.0.0-rc.3 New pin permissions and removal of bot owned guilds
  4. v6.0.0-rc.4 Change to Modals
  5. v6.0.0-rc.5 Modal Components and Serialization
Migrating to 6.0.0

To help ease the upgrade to JDA 6.0.0, we've provided an OpenRewrite recipe that can automatically refactor parts of your codebase. This will update imports and replace a few method calls with their new equivalents in JDA 6.0.0.

However, not all breaking changes can be handled automatically — for example, code that relied on the mutability of ActionRow will require manual adjustments.

You will also have to update your code for creating Modal instances. Instead of using ActionRow, modals now make use of the Label component. Read the release notes for v6.0.0-rc.4 to learn more.

The OpenRewrite Recipe

Before applying the recipe, make sure you’re using version control (e.g., Git) or back up your project manually. You’ll also need to be using Gradle or Maven to apply the migration.

Gradle

We are using the OpenRewrite Gradle Plugin. Before changing your JDA version in gradle, you can add the rewrite plugin and use the recipe to migrate your code:

plugins {
    id("org.openrewrite.rewrite") version "7.11.0"
}

repositories {
    mavenCentral()
}

dependencies {
    // Your current JDA version before upgrading to 6.0.0
    implementation("net.dv8tion:JDA:5.+")

    rewrite("net.dv8tion:JDA:6.0.0")
    rewrite("org.openrewrite.recipe:rewrite-java-dependencies:1.37.0")
}

rewrite {
    activeRecipe("net.dv8tion.MigrateComponentsV2")
}

Once you configured this plugin, you can use the rewriteDryRun task to generate a git patch in build/reports/rewrite/rewrite.patch to see what the plugin will do with your source code. To apply the changes, either use this patch or use rewriteRun.

After migrating your code, you can then update your JDA version (if the rewrite hasn't done it already) and remove the plugin again.

Maven

We are using the OpenRewrite Maven Plugin. Before changing your JDA version in your pom, you can add the rewrite plugin and use the recipe to migrate your code:

<plugin>
  <groupId>org.openrewrite.maven</groupId>
  <artifactId>rewrite-maven-plugin</artifactId>
  <version>6.13.0</version>
  <configuration>
    <activeRecipes>
      <recipe>net.dv8tion.MigrateComponentsV2</recipe>
    </activeRecipes>
  </configuration>
  <dependencies>
    <dependency>
      <groupId>org.openrewrite.recipe</groupId>
      <artifactId>rewrite-java-dependencies</artifactId>
      <version>1.37.0</version>
    </dependency>
    <dependency>
      <groupId>net.dv8tion</groupId>
      <artifactId>JDA</artifactId>
      <version>6.0.0</version>
    </dependency>
  </dependencies>
</plugin>

Once you configured this plugin, you can use the rewrite:dryRun task to generate a git patch in target/site/rewrite/rewrite.patch to see what the plugin will do with your source code. To apply the changes, either use this patch or use rewrite:run.

After migrating your code, you can then update your JDA version (if the rewrite hasn't done it already) and remove the plugin again.

New Features

Changes

Bug Fixes

Full Changelog: https://github.com/discord-jda/JDA/compare/v5.6.1...v6.0.0

Installation

Gradle

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

Maven

<dependency>
    <groupId>net.dv8tion</groupId>
    <artifactId>JDA</artifactId>
    <version>6.0.0</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 becomes conflicted, 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 has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [net.dv8tion:JDA](https://github.com/discord-jda/JDA) | compile | major | `5.6.1` → `6.3.0` | --- ### Release Notes <details> <summary>discord-jda/JDA (net.dv8tion:JDA)</summary> ### [`v6.3.0`](https://github.com/discord-jda/JDA/releases/tag/v6.3.0): | DAVE Protocol Support [Compare Source](https://github.com/discord-jda/JDA/compare/v6.2.1...v6.3.0) ### Overview This release adds initial support for the [DAVE Protocol](https://daveprotocol.com/). > \[!IMPORTANT] > Audio connections without the DAVE Protocol will stop working on March 1st, 2026. If you use JDA to connect to voice channels or stage channels, you will have to update to this release and add the required DAVE Protocol implementation. #### Setting up DAVE Protocol in JDA Since the implementation for DAVE requires native library dependencies, it is not included by default by JDA. We've decided that dependencies related to audio features will no longer be included by default in the future. Starting with JDA 6.3.0, audio features require additional setup in your `JDABuilder` or `DefaultShardManagerBuilder`. Once you have added a dependency that implements `DaveSessionFactory`, you can configure it in your builder using [setAudioModuleConfig](https://docs.jda.wiki/net/dv8tion/jda/api/JDABuilder.html#setAudioModuleConfig\(net.dv8tion.jda.api.audio.AudioModuleConfig\)): ```java builder.setAudioModuleConfig( new AudioModuleConfig() .withDaveSessionFactory(daveSessionFactory) ) ``` You can use [JDAVE](https://github.com/MinnDevelopment/jdave), which provides an implementation for this interface. Note that this library requires **Java 25** and only supports a few platforms for now. Read the [README](https://github.com/MinnDevelopment/jdave) for setup instructions. > \[!WARNING] > This library is still in its early stages and might have some issues. However, I wanted to get this released as soon as possible to allow people to test and report issues, since the deadline is only a few weeks away. I recommend to test this thoroughly before going into production. There are other libraries still in development that will add support for older java versions, such as [libdave-jvm](https://github.com/KyokoBot/libdave-jvm) which uses JNI instead of the modern FFM API. #### New Features - Add support for libdave by [@&#8203;MinnDevelopment](https://github.com/MinnDevelopment) in [#&#8203;2988](https://github.com/discord-jda/JDA/pull/2988) **Full Changelog**: <https://github.com/discord-jda/JDA/compare/v6.2.1...v6.3.0> ### Installation #### Gradle ```gradle repositories { mavenCentral() } dependencies { implementation("net.dv8tion:JDA:6.3.0") } ``` #### Maven ```xml <dependency> <groupId>net.dv8tion</groupId> <artifactId>JDA</artifactId> <version>6.3.0</version> </dependency> ``` ### [`v6.2.1`](https://github.com/discord-jda/JDA/releases/tag/v6.2.1) [Compare Source](https://github.com/discord-jda/JDA/compare/v6.2.0...v6.2.1) ### Overview In this release, we have added new compliance tests that automatically validate some of our enums against the [Official Discord OpenAPI Specification](https://github.com/discord/discord-api-spec). This allows us to easily verify the completeness of our enums, which is why we added a lot of new enum constants. In the future, we might use this spec for serialization / deserialization internally, or even expand it to a public REST-only module. > \[!IMPORTANT] > > ### Important Announcement: Changes to Audio Connections in March 2026 > > Discord has announced in their [Changelog: Deprecating Non-E2EE Voice Calls](https://discord.com/developers/docs/change-log#deprecating-none2ee-voice-calls), that all voice connections will require End-to-End-Encryption starting **March 1st, 2026**. > > Support for this in JDA has been [blocked](https://github.com/discord/libdave/issues/8) by Discord's slow release of their library [libdave](https://github.com/discord/libdave). However, they have finally released a usable C-interface [2 weeks ago](https://github.com/discord/libdave/commit/74979cb33febf4ddef0c2b66e57520b339550c17). The next feature release of JDA will add a new opt-in interface to support the DAVE protocol and will log warnings and errors if this interface is not implemented. The development for this has started in my pull request: [ **Add support for libdave #&#8203;2988**](https://github.com/discord-jda/JDA/pull/2988). > > On **March 1st, 2026**, all JDA audio connections will require an implementation of DAVE. Users of JDA are responsible to choose or provide their own implementation of this protocol. There are already some work-in-progress implementations that directly use libdave, such as [JDAVE](https://github.com/MinnDevelopment/jdave) (requires Java 25) and [libdave-jvm](https://github.com/KyokoBot/libdave-jvm) (requires Java 8). > > If you are affected by this change, you should start migrating to JDA 6 as soon as possible. #### New Features - Support retrieving available SKUs via /applications/{application.id}/skus by [@&#8203;rainbowdashlabs](https://github.com/rainbowdashlabs) in [#&#8203;2828](https://github.com/discord-jda/JDA/pull/2828) - Adds new locales: `DiscordLocale.ARABIC`, `DiscordLocale.HEBREW` - Adds new audit log action types: - `ActionType.SOUNDBOARD_SOUND_CREATE`, `ActionType.SOUNDBOARD_SOUND_UPDATE`, `ActionType.SOUNDBOARD_SOUND_DELETE` - `ActionType.AUTO_MODERATION_QUARANTINE_USER` - `ActionType.CREATOR_MONETIZATION_REQUEST_CREATED`, `ActionType.CREATOR_MONETIZATION_TERMS_ACCEPTED` - `ActionType.ONBOARDING_PROMPT_CREATE`, `ActionType.ONBOARDING_PROMPT_UPDATE`, `ActionType.ONBOARDING_PROMPT_DELETE` - `ActionType.ONBOARDING_CREATE`, `ActionType.ONBOARDING_UPDATE` - `ActionType.HOME_SETTINGS_CREATE`, `ActionType.HOME_SETTINGS_UPDATE`, `ActionType.GUILD_PROFILE_UPDATE` - Adds `AuditLogKey.GUILD_BRAND_COLOR_PRIMARY` - Adds new audit log target types: - `TargetType.SOUNDBOARD_SOUND` - `TargetType.ONBOARDING_PROMPT_STRUCTURE` - `TargetType.ONBOARDING` - Adds `ChannelType.GUILD_DIRECTORY` #### Changes - Redact token from trace logs of gateway requests by [@&#8203;freya022](https://github.com/freya022) in [#&#8203;2986](https://github.com/discord-jda/JDA/pull/2986) - Added Component Verification in Modal Builder by [@&#8203;Crain-32](https://github.com/Crain-32) in [#&#8203;2987](https://github.com/discord-jda/JDA/pull/2987) - Update dependencies by [@&#8203;MinnDevelopment](https://github.com/MinnDevelopment) in [#&#8203;2989](https://github.com/discord-jda/JDA/pull/2989) **Full Changelog**: <https://github.com/discord-jda/JDA/compare/v6.2.0...v6.2.1> ### Installation #### Gradle ```gradle repositories { mavenCentral() } dependencies { implementation("net.dv8tion:JDA:6.2.1") } ``` #### Maven ```xml <dependency> <groupId>net.dv8tion</groupId> <artifactId>JDA</artifactId> <version>6.2.1</version> </dependency> ``` ### [`v6.2.0`](https://github.com/discord-jda/JDA/releases/tag/v6.2.0) [Compare Source](https://github.com/discord-jda/JDA/compare/v6.1.3...v6.2.0) ### Overview This release includes a permission change that will go into effect on **February 26th, 2026**. Any versions older than this will not have the correct permission checks for the new rules, or only partially support the new rules. ##### Permission Changes ([#&#8203;2967](https://github.com/discord-jda/JDA/issues/2967)) After the deadline of **February 26th, 2026**, some permissions will lose capabilities in favor of new permissions. - `MESSAGE_MANAGE` will no longer allow users to **Pin/Unpin Messages** or **Bypass Slowmode**. Instead, the new `BYPASS_SLOWMODE` and `PIN_MESSAGES` permissions have been added. - `MANAGE_GUILD_EXPRESSIONS` will no longer allow users to **Create Emojis/Stickers**. Instead, the new `CREATE_GUILD_EXPRESSIONS` permission has been added. - `MANAGE_EVENTS` will no longer allow users to **Create Scheduled Events**. Instead, the new `CREATE_SCHEDULED_EVENTS` permission has been added. See the [Discord Changelog](https://discord.com/developers/docs/change-log#permission-changes-going-into-effect-february-2026-for-pinmessages-bypassslowmode-createguildexpressions-and-createevents) for details. ##### Retrieve Role Member Counts ([#&#8203;2973](https://github.com/discord-jda/JDA/issues/2973)) The guild role member count can now be retrieved with [Guild#retrieveRoleMemberCounts](https://docs.jda.wiki/net/dv8tion/jda/api/entities/Guild.html#retrieveRoleMemberCounts\(\)). **Example:** ```java guild.retrieveRoleMemberCounts().queue(counts -> { int boostRoleMemberCount = counts.get(guild.getBoostRole()); IO.println("This guild has " + boostRoleMemberCount + " boosters!"); }); ``` ##### Enhanced Role Colors ([#&#8203;2975](https://github.com/discord-jda/JDA/issues/2975)) You can now access and modify the **Gradient** or **Holographic** role colors, a feature unlocked through boosting a guild. **Example:** ```java guild.createRole() .setName("Gradient Role") .setGradientColors(0x0000FF, 0x00FF00) .queue(role -> { IO.println("Is role a gradient? " + role.getColors().isGradient()); IO.println("Primary: %X".formatted(role.getColors().getPrimaryRaw())); IO.println("Secondary: %X".formatted(role.getColors().getSecondaryRaw())); }); ``` #### New Features - Add support for enhanced role colors by [@&#8203;MinnDevelopment](https://github.com/MinnDevelopment) in [#&#8203;2975](https://github.com/discord-jda/JDA/pull/2975) - Add `Guild#retrieveRoleMemberCounts` by [@&#8203;freya022](https://github.com/freya022) in [#&#8203;2973](https://github.com/discord-jda/JDA/pull/2973) - Add GUILD\_BANNER ("banner\_hash") auditlog key by [@&#8203;Vulcano771](https://github.com/Vulcano771) in [#&#8203;2968](https://github.com/discord-jda/JDA/pull/2968) - Voice Channel Invite Guest Flag by [@&#8203;austinpilz](https://github.com/austinpilz) in [#&#8203;2966](https://github.com/discord-jda/JDA/pull/2966) #### Changes - Update permission checks with the Feb 23 2026 deadline by [@&#8203;freya022](https://github.com/freya022) in [#&#8203;2967](https://github.com/discord-jda/JDA/pull/2967) **Full Changelog**: <https://github.com/discord-jda/JDA/compare/v6.1.3...v6.2.0> ### Installation #### Gradle ```gradle repositories { mavenCentral() } dependencies { implementation("net.dv8tion:JDA:6.2.0") } ``` #### Maven ```xml <dependency> <groupId>net.dv8tion</groupId> <artifactId>JDA</artifactId> <version>6.2.0</version> </dependency> ``` ### [`v6.1.3`](https://github.com/discord-jda/JDA/releases/tag/v6.1.3) [Compare Source](https://github.com/discord-jda/JDA/compare/v6.1.2...v6.1.3) #### Bug Fixes - Avoid downloading external URLs for component updates by [@&#8203;MinnDevelopment](https://github.com/MinnDevelopment) in [#&#8203;2971](https://github.com/discord-jda/JDA/pull/2971) **Full Changelog**: <https://github.com/discord-jda/JDA/compare/v6.1.2...v6.1.3> ### Installation #### Gradle ```gradle repositories { mavenCentral() } dependencies { implementation("net.dv8tion:JDA:6.1.3") } ``` #### Maven ```xml <dependency> <groupId>net.dv8tion</groupId> <artifactId>JDA</artifactId> <version>6.1.3</version> </dependency> ``` ### [`v6.1.2`](https://github.com/discord-jda/JDA/releases/tag/v6.1.2) [Compare Source](https://github.com/discord-jda/JDA/compare/v6.1.1...v6.1.2) #### Bug Fixes - Fix voice state in events when joining channel by [@&#8203;MinnDevelopment](https://github.com/MinnDevelopment) in [#&#8203;2959](https://github.com/discord-jda/JDA/pull/2959) **Full Changelog**: <https://github.com/discord-jda/JDA/compare/v6.1.1...v6.1.2> ### Installation #### Gradle ```gradle repositories { mavenCentral() } dependencies { implementation("net.dv8tion:JDA:6.1.2") } ``` #### Maven ```xml <dependency> <groupId>net.dv8tion</groupId> <artifactId>JDA</artifactId> <version>6.1.2</version> </dependency> ``` ### [`v6.1.1`](https://github.com/discord-jda/JDA/releases/tag/v6.1.1) [Compare Source](https://github.com/discord-jda/JDA/compare/v6.1.0...v6.1.1) #### New Features - Implement Reading/Writing System Channel Flags by [@&#8203;LaFriska](https://github.com/LaFriska) in [#&#8203;2928](https://github.com/discord-jda/JDA/pull/2928) #### Bug Fixes - Fix `ModalMapping::getAsAttachmentList` if no attachments were submitted by [@&#8203;archer-321](https://github.com/archer-321) in [#&#8203;2941](https://github.com/discord-jda/JDA/pull/2941) - Remove internal class call and replace with local version by [@&#8203;mikomikotaishi](https://github.com/mikomikotaishi) in [#&#8203;2944](https://github.com/discord-jda/JDA/pull/2944) - Fix emtpy edit message builders by [@&#8203;MinnDevelopment](https://github.com/MinnDevelopment) in [#&#8203;2953](https://github.com/discord-jda/JDA/pull/2953) - Add check for valid interface types on ChannelCacheView#ofType by [@&#8203;MinnDevelopment](https://github.com/MinnDevelopment) in [#&#8203;2955](https://github.com/discord-jda/JDA/pull/2955) **Full Changelog**: <https://github.com/discord-jda/JDA/compare/v6.1.0...v6.1.1> ### Installation #### Gradle ```gradle repositories { mavenCentral() } dependencies { implementation("net.dv8tion:JDA:6.1.1") } ``` #### Maven ```xml <dependency> <groupId>net.dv8tion</groupId> <artifactId>JDA</artifactId> <version>6.1.1</version> </dependency> ``` ### [`v6.1.0`](https://github.com/discord-jda/JDA/releases/tag/v6.1.0): | Modal File Uploads ### Overview This release primarily adds support for file uploads in modals. ##### Creating a Modal accepting file uploads ```java Modal.create("modal-id", "Banner Update") .addComponents(Label.of("Banner Image", AttachmentUpload.of("banner-file"))) .build() ``` ##### Using the uploaded file ```java @&#8203;Override public void onModalInteraction(@&#8203;NotNull ModalInteractionEvent event) { event.reply("The banner is being updated.").setEphemeral(true).queue(); Message.Attachment attachment = event.getValue("cat-img").getAsAttachmentList().get(0); attachment.getProxy() .downloadAsIcon() .thenCompose(icon -> event.getGuild().getSelfMember().getManager().setBanner(icon).submit()) .exceptionally(e -> { RestAction.getDefaultFailure().accept(e); return null; }); } ``` #### New Features - Add modal file uploads by [@&#8203;freya022](https://github.com/freya022) in [#&#8203;2920](https://github.com/discord-jda/JDA/pull/2920) - Support modifying avatar, banner and bio of current member by [@&#8203;freya022](https://github.com/freya022) in [#&#8203;2915](https://github.com/discord-jda/JDA/pull/2915) - Add missing `Invite.Guild` fields by [@&#8203;freya022](https://github.com/freya022) in [#&#8203;2914](https://github.com/discord-jda/JDA/pull/2914) **Full Changelog**: <https://github.com/discord-jda/JDA/compare/v6.0.0...v6.1.0> ### Installation #### Gradle ```gradle repositories { mavenCentral() } dependencies { implementation("net.dv8tion:JDA:6.1.0") } ``` #### Maven ```xml <dependency> <groupId>net.dv8tion</groupId> <artifactId>JDA</artifactId> <version>6.1.0</version> </dependency> ``` ### [`v6.0.0`](https://github.com/discord-jda/JDA/releases/tag/v6.0.0): | New Component API [Compare Source](https://github.com/discord-jda/JDA/compare/v5.6.1...v6.0.0) ### Overview This is the stable release of JDA **6.0.0**. To avoid repeating the same information again, please look at the release notes of the release candidates for detailed explanations of the breaking changes and new features. ##### Release Candidates 1. [v6.0.0-rc.1](https://github.com/discord-jda/JDA/releases/tag/v6.0.0-rc.1) **New Components** 2. [v6.0.0-rc.2](https://github.com/discord-jda/JDA/releases/tag/v6.0.0-rc.2) **New Pin Pagination API** 3. [v6.0.0-rc.3](https://github.com/discord-jda/JDA/releases/tag/v6.0.0-rc.3) **New pin permissions and removal of bot owned guilds** 4. [v6.0.0-rc.4](https://github.com/discord-jda/JDA/releases/tag/v6.0.0-rc.4) **Change to Modals** 5. [v6.0.0-rc.5](https://github.com/discord-jda/JDA/releases/tag/v6.0.0-rc.5) **Modal Components and Serialization** ##### Migrating to 6.0.0 To help ease the upgrade to JDA 6.0.0, we've provided an [OpenRewrite recipe](https://github.com/discord-jda/JDA/blob/b3667079444e2a70a6794a1eb1853ebe752c9f9f/src/main/resources/META-INF/rewrite/rewrite.yml) that can automatically refactor parts of your codebase. This will update imports and replace a few method calls with their new equivalents in JDA 6.0.0. However, not all breaking changes can be handled automatically — for example, code that relied on the mutability of `ActionRow` will require manual adjustments. You will also have to update your code for creating `Modal` instances. Instead of using `ActionRow`, modals now make use of the `Label` component. Read the [release notes for v6.0.0-rc.4](https://github.com/discord-jda/JDA/releases/tag/v6.0.0-rc.4) to learn more. ##### The OpenRewrite Recipe Before applying the recipe, make sure you’re using version control (e.g., Git) or back up your project manually. You’ll also need to be using **Gradle** or **Maven** to apply the migration. <details> <summary><strong>Gradle</strong></summary> We are using the [OpenRewrite Gradle Plugin](https://docs.openrewrite.org/reference/gradle-plugin-configuration). Before changing your JDA version in gradle, you can add the rewrite plugin and use the recipe to migrate your code: ```gradle plugins { id("org.openrewrite.rewrite") version "7.11.0" } repositories { mavenCentral() } dependencies { // Your current JDA version before upgrading to 6.0.0 implementation("net.dv8tion:JDA:5.+") rewrite("net.dv8tion:JDA:6.0.0") rewrite("org.openrewrite.recipe:rewrite-java-dependencies:1.37.0") } rewrite { activeRecipe("net.dv8tion.MigrateComponentsV2") } ``` Once you configured this plugin, you can use the `rewriteDryRun` task to generate a git patch in `build/reports/rewrite/rewrite.patch` to see what the plugin will do with your source code. To apply the changes, either use this patch or use `rewriteRun`. After migrating your code, you can then update your JDA version (if the rewrite hasn't done it already) and remove the plugin again. </details> <details> <summary><strong>Maven</strong></summary> We are using the [OpenRewrite Maven Plugin](https://docs.openrewrite.org/reference/rewrite-maven-plugin). Before changing your JDA version in your pom, you can add the rewrite plugin and use the recipe to migrate your code: ```xml <plugin> <groupId>org.openrewrite.maven</groupId> <artifactId>rewrite-maven-plugin</artifactId> <version>6.13.0</version> <configuration> <activeRecipes> <recipe>net.dv8tion.MigrateComponentsV2</recipe> </activeRecipes> </configuration> <dependencies> <dependency> <groupId>org.openrewrite.recipe</groupId> <artifactId>rewrite-java-dependencies</artifactId> <version>1.37.0</version> </dependency> <dependency> <groupId>net.dv8tion</groupId> <artifactId>JDA</artifactId> <version>6.0.0</version> </dependency> </dependencies> </plugin> ``` Once you configured this plugin, you can use the `rewrite:dryRun` task to generate a git patch in `target/site/rewrite/rewrite.patch` to see what the plugin will do with your source code. To apply the changes, either use this patch or use `rewrite:run`. After migrating your code, you can then update your JDA version (if the rewrite hasn't done it already) and remove the plugin again. </details> #### New Features - Add support for components V2 by [@&#8203;freya022](https://github.com/freya022) in [#&#8203;2809](https://github.com/discord-jda/JDA/pull/2809) - Add new pinned message pagination by [@&#8203;MinnDevelopment](https://github.com/MinnDevelopment) in [#&#8203;2874](https://github.com/discord-jda/JDA/pull/2874) - Add message pin permission by [@&#8203;freya022](https://github.com/freya022) in [#&#8203;2895](https://github.com/discord-jda/JDA/pull/2895) - Add support for user primary guilds by [@&#8203;mjezek-dev](https://github.com/mjezek-dev) in [#&#8203;2863](https://github.com/discord-jda/JDA/pull/2863) - Add common interface for interactions with a custom ID by [@&#8203;Kaktushose](https://github.com/Kaktushose) in [#&#8203;2778](https://github.com/discord-jda/JDA/pull/2778) - Add support for Label and StringSelectMenu in Modals by [@&#8203;Xirado](https://github.com/Xirado) in [#&#8203;2162](https://github.com/discord-jda/JDA/pull/2162) - Add ComponentSerializer and ComponentDeserializer by [@&#8203;MinnDevelopment](https://github.com/MinnDevelopment) in [#&#8203;2906](https://github.com/discord-jda/JDA/pull/2906) - Add TextInput#of shortcut by [@&#8203;MinnDevelopment](https://github.com/MinnDevelopment) in [#&#8203;2908](https://github.com/discord-jda/JDA/pull/2908) - Add entity selects and text displays in modals by [@&#8203;freya022](https://github.com/freya022) in [#&#8203;2913](https://github.com/discord-jda/JDA/pull/2913) #### Changes - Remove deprecated features by [@&#8203;MinnDevelopment](https://github.com/MinnDevelopment) in [#&#8203;2867](https://github.com/discord-jda/JDA/pull/2867) - Make JDA#getMutualGuilds accept UserSnowflake instead of User objects by [@&#8203;MineKing9534](https://github.com/MineKing9534) in [#&#8203;2877](https://github.com/discord-jda/JDA/pull/2877) - Move modal classes out of the `interactions` package by [@&#8203;freya022](https://github.com/freya022) in [#&#8203;2890](https://github.com/discord-jda/JDA/pull/2890) - Use new routes to (un)pin messages by [@&#8203;freya022](https://github.com/freya022) in [#&#8203;2896](https://github.com/discord-jda/JDA/pull/2896) - Remove bot owned guild endpoints by [@&#8203;freya022](https://github.com/freya022) in [#&#8203;2888](https://github.com/discord-jda/JDA/pull/2888) #### Bug Fixes - Remove port stripping in VoiceServerUpdateHandler by [@&#8203;MinnDevelopment](https://github.com/MinnDevelopment) in [#&#8203;2884](https://github.com/discord-jda/JDA/pull/2884) - Use `DELETE_GUILD` route according to the Discord Docs by [@&#8203;kiLeo13](https://github.com/kiLeo13) in [#&#8203;2875](https://github.com/discord-jda/JDA/pull/2875) - Handle forum channels with missing available\_tags field by [@&#8203;MinnDevelopment](https://github.com/MinnDevelopment) in [#&#8203;2902](https://github.com/discord-jda/JDA/pull/2902) - Remove unnecessary escaping while creating a masked link by [@&#8203;Alf-Melmac](https://github.com/Alf-Melmac) in [#&#8203;2910](https://github.com/discord-jda/JDA/pull/2910) **Full Changelog**: <https://github.com/discord-jda/JDA/compare/v5.6.1...v6.0.0> ### Installation #### Gradle ```gradle repositories { mavenCentral() } dependencies { implementation("net.dv8tion:JDA:6.0.0") } ``` #### Maven ```xml <dependency> <groupId>net.dv8tion</groupId> <artifactId>JDA</artifactId> <version>6.0.0</version> </dependency> ``` </details> --- ### 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 becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMTEuNCIsInVwZGF0ZWRJblZlciI6IjQyLjc4LjAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->
renovate added 1 commit 2025-07-14 01:00:34 +02:00
Update dependency net.dv8tion:JDA to v6
Some checks failed
continuous-integration/drone/pr Build is failing
a160852757
renovate force-pushed renovate/net.dv8tion-jda-6.x from a160852757 to f43d1eeabf 2025-11-06 14:44:23 +01:00 Compare
renovate force-pushed renovate/net.dv8tion-jda-6.x from f43d1eeabf to 3e2ae747ca 2025-11-06 16:37:40 +01:00 Compare
renovate force-pushed renovate/net.dv8tion-jda-6.x from 3e2ae747ca to 1de5de3ec8 2025-11-23 22:01:11 +01:00 Compare
renovate force-pushed renovate/net.dv8tion-jda-6.x from 1de5de3ec8 to 5de5db5a3e 2025-12-09 13:00:58 +01:00 Compare
renovate force-pushed renovate/net.dv8tion-jda-6.x from 5de5db5a3e to f928fdc989 2025-12-14 17:01:12 +01:00 Compare
renovate force-pushed renovate/net.dv8tion-jda-6.x from f928fdc989 to bd916251f1 2026-01-01 16:01:05 +01:00 Compare
renovate force-pushed renovate/net.dv8tion-jda-6.x from bd916251f1 to a657dc65a0 2026-01-11 16:01:03 +01:00 Compare
Some checks failed
continuous-integration/drone/pr Build is failing
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/net.dv8tion-jda-6.x:renovate/net.dv8tion-jda-6.x
git checkout renovate/net.dv8tion-jda-6.x
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bea/HidekoBot#52