-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Update dependency net.dv8tion:JDA to v5.0.0 #199
Open
renovate
wants to merge
1
commit into
master
Choose a base branch
from
renovate/net.dv8tion-jda-5.x
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c1ed193
to
6b91e6a
Compare
6b91e6a
to
58d3262
Compare
58d3262
to
8d34691
Compare
8d34691
to
094a221
Compare
094a221
to
4f111ac
Compare
4f111ac
to
4c8e0a9
Compare
4c8e0a9
to
b1d60b1
Compare
b1d60b1
to
49cb23d
Compare
49cb23d
to
fbafb0a
Compare
fbafb0a
to
89541c7
Compare
89541c7
to
cab06b0
Compare
cab06b0
to
318533d
Compare
318533d
to
d952341
Compare
d952341
to
5031563
Compare
5031563
to
7d7f87f
Compare
7d7f87f
to
7a275b3
Compare
7a275b3
to
bec5d72
Compare
bec5d72
to
15ebee2
Compare
15ebee2
to
59b74b6
Compare
59b74b6
to
b111841
Compare
b111841
to
3d6dfa2
Compare
3d6dfa2
to
9f3688f
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
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.0.0-alpha.17
->5.0.0
Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
discord-jda/JDA (net.dv8tion:JDA)
v5.0.0
: | End of beta phaseThe Long Awaited Stabilization
After almost 3 years of refactoring and polishing, the stabilization of JDA 5.0.0 is here. If you have been following along, not much has changed since the latest beta release.
If you have somehow avoided updating to a beta release since 2021, here is a list of the most noteworthy additions, changes, and bug fixes since 4.4.0.
You can also use our Migration Guide to help you update to the latest version of JDA 5. This guide also includes the most important changes you need to consider.
Interactions / Application Features
Discord has further improved the capabilities of applications with new types of interactions. This major release of JDA adds support for these features, coming with some restructuring to properly accomodate the new types.
We've renamed interaction events to a more consistent naming scheme:
SlashCommandEvent
becomesSlashCommandInteractionEvent
ButtonClickEvent
becomesButtonInteractionEvent
Similarly, we've renamed component types slightly:
SelectionMenu
is nowStringSelectMenu
, while adding a newEntitySelectMenu
Component
has now been renamed toActionComponent
andItemComponent
, allowing us to introduceComponent
as an abstraction over bothButton
andActionRow
(which is now aLayoutComponent
). The newComponent
interface is now an abstraction over bothItemComponent
andLayoutComponent
.To learn more about interactions in JDA 5, take a look at our Interactions Wiki Guide.
Channel Type Rework
We've refactored the channel types and usages in JDA to be more maintainable. Each type of channel now directly maps to a specific channel interface, unlike before where
VoiceChannel
was used for both stage and voice type channels.Instead there are now concrete interfaces for each type, such as
NewsChannel
,StageChannel
,ForumChannel
, etc.The channel type hierarchy has been further refined, by introducing higher level abstractions to represent the features of multiple channel types:
Channel
GuildChannel
MessageChannel
andGuildMessageChannel
AudioChannel
As well as more specific features or attributes of channels:
IPermissionContainer
IPositionableChannel
IThreadContainer
IWebhookContainer
To properly maintain these many different channel types and make them easy to use, we've also introduced new union types to encompass multiple channels into a simple common union type. This replaces the old
getTextChannel()
/getVoiceChannel()
getters on events withgetChannel().asTextChannel()
. However, you can also use the standard features of the unions directly. For instance, aMessageChannelUnion
allows to send messages and these specialization methods:Cache access has also seen some improvement, by introducing a new
getChannelById(Class, long)
method, allowing to just get aMessageChannel
without worrying about the concrete type.Learn more about the channel rework in Channel Rework.
Message Features
We've refactored our message sending interfaces to be more consistent, by abstracting
MessageAction
,MessageBuilder
, andReplyAction
into shared interfacesMessageCreateRequest
andMessageEditRequest
. This makes all message sending code consistent. We recommend to simply chain your builder-like code directly on send messages:However, if you need to use builders, we've introduced MessageEditBuilder and MessageCreateBuilder to replace the old
MessageBuilder
utility. You can also now useSplitUtil
to easily divide message content into multiple messages.To support file descriptions and reduce the number of sendFile overloads, we've also introduced a new
FileUpload
type that unifies all attachments into a single type.Learn more about the changes to message sending in Message Send/Edit Rework.
Emojis and Stickers
In JDA 5, we have decided to unify all emoji types into a consistent type structure:
Emoji
, a top-level interface representing all emoji as well as a type discriminator withEmoji#getType
UnicodeEmoji
, standard unicode emoji such as 🤔CustomEmoji
, custom emoji found in messages, like<:minn:245267426227388416>
RichCustomEmoji
, emoji with more information such as owner, accessible through the guild settings.EmojiUnion
, adding type casting for things likeMessageReaction#getEmoji
These new emoji types replace the duplication of
ReactionEmote
andActivity.Emoji
.Stickers have also been refactored in a similar way, making a clear distinction between stickers found in messages and guild settings:
Sticker
, a top-level abstraction of all sticker typesStickerItem
, stickers found in messagesRichSticker
, stickers with more information that is usually omitted for messages (sticker items)StandardSticker
, rich stickers provided by nitro instead of guildsGuildSticker
, rich stickers provided in guildsStickerUnion
, adding type castingLearn more about the changes to emojis and stickers in Sticker and Emoji Rework.
Installation
All future JDA releases will be distributed through maven central. You no longer need to use
jcenter()
in your dependency manager.Gradle
Maven
Changelog (5.0.0-beta.24 -> 5.0.0)
The changes since the latest beta release to this release.
Changelog (4.4.0 -> 5.0.0)
Note that this changelog is a linear history of changes. This means some earlier changes have already been superseded or refined in more recent changes. This changelog is slightly compressed to remove unimportant changes, you can see the full list of commits here.
Thank you all for contributing!
New Features
New feature additions since 4.4.0
SUPPRESS_NOTIFICATIONS
flag for message by @Mysterious-Dev in https://github.com/discord-jda/JDA/pull/2393Breaking Changes
Breaking changes since 4.4.0
Other Changes
Other noteworthy changes since 4.4.0
toString
methods by @freya022 in https://github.com/discord-jda/JDA/pull/2273Bug Fixes
Bugs fixed since 4.4.0
v5.0.0-beta.24
: | Bug fixes and entitlement typesOverview
This is a small bugfix release, including some missing features for premium app entitlements.
Additional Entitlement Features (#2667)
This release adds support for test entitlements and consumed entitlements.
An entitlement can be consumed, marking it as already used. This can be useful for one-time entitlements, which are consumed on use.
New Features
IPostContainerManager#setTopic
by @freya022 in https://github.com/discord-jda/JDA/pull/2666Changes
Bug Fixes
Full Changelog: discord-jda/JDA@v5.0.0-beta.23...v5.0.0-beta.24
Installation
Gradle
Maven
v5.0.0-beta.23
: | Message PollsOverview
This release includes an updated README, please let us know if you spot any issues with it!
Polls (#2649)
Discord has recently released a new feature on their platform to start and vote in polls. These polls can now be sent in messages:
The poll automatically expires after a set duration, configurable in the
MessagePollBuilder
using setDuration. A poll can also be ended manually using endPoll or endPollById.You can check the poll votes on a message using the new
Message#getPoll
:New Features
Changes
Bugs Fixes
CommandInteractionPayload#getCommandString
in autocomplete interactions by @freya022 in https://github.com/discord-jda/JDA/pull/2659Full Changelog: discord-jda/JDA@v5.0.0-beta.22...v5.0.0-beta.23
Installation
Gradle
Maven
v5.0.0-beta.22
: | Bulk ban, premium apps, bug fixesOverview
This release adds some newer API features, like premium app subscriptions, bot banners, and bulk banning users.
Besides new features, this release also includes improved errors and bug fixes.
Premium App Subscriptions (#2583)
If your bot is eligible for monetization, you can now use JDA to handle entitlements in interactions to restrict features. With
event.replyWithPremiumRequired()
, you can upsell a premium subscription to a user:Read more about entitlements and premium app subscriptions in the Discord Developer Docs.
Bulk Ban (#2630)
You can now ban up to 200 users in one request using
guild.ban(users, messageDeleteTimeframe)
.This endpoint has a few quirks to keep in mind:
New Features
Changes
Bug Fixes
Full Changelog: discord-jda/JDA@v5.0.0-beta.21...v5.0.0-beta.22
Installation
Gradle
Maven
v5.0.0-beta.21
: | Bug fixes and enforced nonce on messagesOverview
This release fixes a few bugs but also implements a new behavior on message sending.
With the new enforce nonce behavior, messages will no longer be duplicated due to timeouts or discord outages. This means, any message request will now send an automatically generated nonce. You can still set a custom nonce using setNonce, but you should make sure that this nonce is unique. If you previously relied on this setter, ensure that you are not sending duplicated nonce values.
New Features
Changes
Bug Fixes
Full Changelog: discord-jda/JDA@v5.0.0-beta.20...v5.0.0-beta.21
Installation
Gradle
Maven
v5.0.0-beta.20
: | Bug fixes and internal refactoringOverview
With this release, we reworked a lot of internals related to how we cache channels. Ideally, you should not notice any difference.
New Features
Changes
Bug Fixes
Full Changelog: discord-jda/JDA@v5.0.0-beta.19...v5.0.0-beta.20
Installation
Gradle
Maven
v5.0.0-beta.19
: | Bug fixes and voice channel statusOverview
Smaller release with some bug fixes and added support for voice channel status feature.
Voice Channel Status (#2532)
Bots can now configure the voice channel status, shown when opening a voice channel in full screen mode. This works similarly to a channel topic, but can be configured by everyone who is currently connected to the channel.
The new
VOICE_SET_STATUS
permission indicates whether a user can change the channel status while they are connected. When a user is not connected to the channel, theMANAGE_CHANNEL
permission is required instead (similar to topics).Note that this feature might be replaced by a new "hang status" in the future, which would instead show on the user rather than the channel.
New Features
Changes
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 has been generated by Mend Renovate. View repository job log here.