fix(deps): update dependency net.dv8tion:jda to v5.5.0 #18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
5.1.0
->5.5.0
Release Notes
discord-jda/JDA (net.dv8tion:JDA)
v5.5.0
: | Improved voice state cache and file proxiesChanges 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 asCacheFlag.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.
New Features
downloadAsFileUpload
to file proxies by @freya022 in https://github.com/discord-jda/JDA/pull/2782ImageProxy#downloadAsIcon
by @freya022 in https://github.com/discord-jda/JDA/pull/2727Changes
Bug Fixes
Full Changelog: discord-jda/JDA@v5.4.0...v5.5.0
Installation
Gradle
Maven
v5.4.0
: | Interaction callback response and security incidentsAccess the created or updated message from interaction replies (#2798)
You can now use InteractionHook#getCallbackResponse to access the messages created by interaction replies.
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.
New Features
Changes
Bug Fixes
FileProxy#withClient
return types by @freya022 in https://github.com/discord-jda/JDA/pull/2698Full Changelog: discord-jda/JDA@v5.3.2...v5.4.0
Installation
Gradle
Maven
v5.3.2
: | Bug fix for PrivateChannel#getNameOverview
Small bug fix release.
Bug Fixes
PrivateChannel#getName
returningnull
by @freya022 in https://github.com/discord-jda/JDA/pull/2820Full Changelog: discord-jda/JDA@v5.3.1...v5.3.2
Installation
Gradle
Maven
v5.3.1
: | Bug fixesOverview
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
Maven
v5.3.0
: | User-Installable AppsOverview
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:
Once enabled, you can create user-installable commands, by changing the integration types:
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:
The generated link, can now be used to install your application to the authorizing user.
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
Guild#retrieveMemberVoiceState
by @PascalNB in https://github.com/discord-jda/JDA/pull/2729Full Changelog: discord-jda/JDA@v5.2.3...v5.3.0
Installation
Gradle
Maven
v5.2.3
Small bug fix release.
Bug Fixes
Changes
ApplicationEmoji#APPLICATION_EMOJI_CAP
->MAX_APPLICATION_EMOJIS
by @freya022 in https://github.com/discord-jda/JDA/pull/2791Full Changelog: discord-jda/JDA@v5.2.2...v5.2.3
Installation
Gradle
Maven
v5.2.2
Small bug fix release.
Bug Fixes
DefaultShardManagerBuilder#setDisabledIntents
by @freya022 in https://github.com/discord-jda/JDA/pull/2785Full Changelog: discord-jda/JDA@v5.2.1...v5.2.2
Installation
Gradle
Maven
v5.2.1
Small bug fix release.
Bug Fixes
Full Changelog: discord-jda/JDA@v5.2.0...v5.2.1
Installation
Gradle
Maven
v5.2.0
: | Application emoji and premium buttonsOverview
This release adds some new features for applications. We've also started working on more compliance tests to make contributing and reviewing changes easier.
Premium Buttons (#2752)
The interaction response
replyWithPremiumRequired
is being phased out in favor of custom messages with a new button styleButton.premium(sku)
to upsell specific premium features instead.You can change your code to a simple
reply(content)
with this button as a component.For more info, see the official Discord Changelog.
Application Emoji (#2726)
Your bot can now manage emoji with JDA by using
JDA#createApplicationEmoji
. These emojis can then be used like any other emoji withEmoji.fromCustom(name, id, animated)
.New Features
ScheduledEvent::getJumpUrl
by @raul1ro in https://github.com/discord-jda/JDA/pull/2736Bug Fixes
Changes
GatewayIntent#GUILD_EMOJIS_AND_STICKERS
in favor ofGUILD_EXPRESSIONS
by @freya022 in https://github.com/discord-jda/JDA/pull/2755Full Changelog: discord-jda/JDA@v5.1.2...v5.2.0
Installation
Gradle
Maven
v5.1.2
: | Message Forwarding and Voice MessagesOverview
This release adds support for new message features.
Forwarding messages (#2744)
You can now handle forwarded messages using the new message snapshots.
A bot can also forward a message using
Message#fowardTo
. Note that a forwarded message cannot contain any additional content.Voice messages (#2738)
You can now send voice messages with JDA, by utilizing the new
FileUpload#asVoiceMessage
method on your audio attachments.To create a voice message, you must first determine the audio media type of your voice message and sample a waveform up to 256 bytes. Voice messages require a valid
audio/*
media type likeaudio/ogg
.The waveform is used to render the voice message shape in the preview. It must not be an accurate sampling of the actual audio.
New Features
Bug Fixes
Full Changelog: discord-jda/JDA@v5.1.1...v5.1.2
Installation
Gradle
Maven
v5.1.1
: | Small bugfix releaseOverview
Small release to fix a few bugs. This fixes an issue that caused voice receive to no longer work as intended in 5.1.0.
Bug Fixes
@CheckReturnValue
from Once.Builder.subscribe by @freya022 in https://github.com/discord-jda/JDA/pull/2730Full Changelog: discord-jda/JDA@v5.1.0...v5.1.1
Installation
Gradle
Maven
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.
This PR was generated by Mend Renovate. View the repository job log.