Skip to content
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

Added RestAction#onSuccess #2227

Merged
merged 4 commits into from
Sep 20, 2022
Merged

Added RestAction#onSuccess #2227

merged 4 commits into from
Sep 20, 2022

Conversation

Zabuzard
Copy link
Contributor

@Zabuzard Zabuzard commented Aug 28, 2022

Pull Request Etiquette

Changes

  • Internal code
  • Library interface (affecting end-user code)
  • Documentation
  • Other: _____

Closes Issue: NaN

Description

Added two one new user-facing convenience method on RestAction, accept and also onSuccess. It represents a frequent scenario on action-chaining that otherwise requires cumbersome workarounds for the user.

onSuccess

The method works like map, but results in a RestAction<T>, continuing with the previous result. It just consumes the given result, but allows continuation of the action-chain:

guild.retrieveMemberById(userId) // RestAction<Member>
  .onSuccess(System.out::println)   // RestAction<Member>
  .flatMap(any -> channel.sendMessage("Done"))
  .queue()

This enables users to chain in void methods.

The workaround without this helper would be:

guild.retrieveMemberById(userId)
  .map(member -> {
    System.out.println(member);
    return member;
  })
  .flatMap(any -> channel.sendMessage("Done"))
  .queue()

Which works well, but is just annoying boilerplate. In particular since method references can not be used.

The name onSuccess is inspired by similar methods in JDA. For example the callback in queue(onSuccess) or Task#onSuccess. Also, similar to onErrorMap and onErrorFlatMap.

accept

(Removed in favor of onSuccess which also handles this use case)

The method works like map, but results in a RestAction<Void>. It just consumes the given result, but allows continuation of the action-chain:

guild.retrieveMemberById(userId) // RestAction<Member>
  .accept(System.out::println)   // RestAction<Void>
  .flatMap(any -> channel.sendMessage("Done"))
  .queue()

This enables users to chain in void methods.

The workaround without this helper would be:

guild.retrieveMemberById(userId)
  .<Void>map(member -> {
    System.out.println(member);
    return null;
  })
  .flatMap(any -> channel.sendMessage("Done"))
  .queue()

The main issue for the user is that Void is obviously incompatible with void and hence can not be automatically inferred. Resulting in a lot of boilerplate for the user.

The name accept is inspired by Javas future API: CompletableFuture#thenAccept

also

(Removed in favor of onSuccess which also handles this use case)

This method is quite similar to accept, but instead it forwards the previous result, continuing with RestAction<T>:

guild.retrieveMemberById(userId)  // RestAction<Member>
  .also(System.out::println)      // RestAction<Member>
  .flatMap(Member::openPrivateChannel)
  .flatMap(channel -> channel.sendMessage("hello"))
  .queue()

This enables users to chain in void methods.

The workaround without this helper would be:

guild.retrieveMemberById(userId)
  .map(member -> {
    System.out.println(member);
    return member;
  })
  .flatMap(Member::openPrivateChannel)
  .flatMap(channel -> channel.sendMessage("hello"))
  .queue()

A bit less boilerplate for the user, since the type can at least be automatically inferred. However, it is still annoying that method references can not be used and the user is forced to introduce lambdas.

The name also is inspired by Kotlins scoped function: .also

Discussion

An argument can be made that all users of accept could also just use also and just ignore the action result (what they have to do with Void anyways).

I.e. the previous example for accept could also be written using also:

guild.retrieveMemberById(userId) // RestAction<Member>
  .also(System.out::println)   // RestAction<Member>
  .flatMap(any -> channel.sendMessage("Done")) // just ignore the member
  .queue()

That would allow us to just remove accept, maybe renaming also into accept then 🤷 The advantage is clear:

  • less confusion for the user due to less options to choose from
  • less code to maintain

Personally, I am actually in favor of this decision. Let me hear your opinion on it and we can adjust the PR slightly 👌

Edits

Removed accept, kept also (because it can cover both use cases fine). But renamed also to onSuccess.

They are convenience overloads to frequent scenarios that otherwise require some cumbersome workarounds.
@MinnDevelopment
Copy link
Member

I think we should use the name onSuccess which can add side-effects like this. It would simply accept Consumer<? super T>.

I don't like the name accept as its not very clear or discoverable. Also, the also should be removed since its not necessary and clashes with the kotlin function.

@Zabuzard
Copy link
Contributor Author

Zabuzard commented Aug 28, 2022

I think we should use the name onSuccess which can add side-effects like this. It would simply accept Consumer<? super T>.

I don't like the name accept as its not very clear or discoverable. Also, the also should be removed since its not necessary and clashes with the kotlin function.

Didnt think about Kotlin interoperability, you are right with that - the name clashes.

I am okay with onSuccess, but I think it does not play very well along the existing naming.

Right now, RestAction reads very similar to Javas Stream API, the equivalent there would be maybe peek. For CompletableFuture, it is accept (vs apply).

Ultimately, I do not care too much about the naming and trust your experience on this. As long as the functionality is well received, I am happy 😄

@Zabuzard
Copy link
Contributor Author

Zabuzard commented Aug 28, 2022

Actually, after thinking about it again, I think your name is a great idea. In particular if we think about .queue(onSuccess, onError). So the action-chain could then look like:

action.map(...)
  .onSuccess(...)
  .onSuccess(...)
  .flatMap(...)
  .onSuccess(...)
  .map(...)
  .queue();

Reads well.

@MinnDevelopment
Copy link
Member

The reason I choose this altered name is because of two reasons:

  • It only adds a side-effect (unlike map which is a transfer function)
  • It is essentially an event listener (onEvent)

And I do not want to use the naming of CompletableFuture because I believe it is bad.

Another important thing to consider is whether errors should be propagated or caught, I'm not quite sure which is better in this case.

@Zabuzard
Copy link
Contributor Author

Agree to your points.

Another important thing to consider is whether errors should be propagated or caught, I'm not quite sure which is better in this case.

Kinda depends on the naming. With my initial proposals, I think the user would expect it to propagate, since its part of the chain

With onSuccess however, I can see your point, as it is really just a side-effect and not necessarily "part of the chain".

@Zabuzard
Copy link
Contributor Author

Suppressing exceptions is dangerous though. It can lead to a lot of confusion for users. I would vote for propagating exceptions and let the user decide. If they want to chain in a method that can throw, they can just add try-catch themselves.

If that clashes with the intention that the name suggests, we have to pick a better name.

@java-coding-prodigy
Copy link
Contributor

java-coding-prodigy commented Aug 28, 2022

In my opinion we should use peek as the name, inspired from Stream#peek which also applies a consumer on the data and returns the same value

@V-Play-Games
Copy link
Contributor

Something like addToCallbackChain(Success, Failure) would work since it clearly states it's adding callbacks to the "callback chain"

@Zabuzard
Copy link
Contributor Author

As a note, I admit that the use case for also is definitely to add some sort of "side-operation", but the motivation behind accept is not.

I frequently run into the situation where I want to work with the data that the rest-chain spits out, but still do not want to finish the chain and continue another operations after it. Such as:

task1.accept(...)
  .flatMap(any -> task2)
  .queue(...);

So it is similar to queue(onSuccess), with the difference that you want to continue the chain (with implicit stop on failure).

The motivation for accept is essentially the same as for map and flatMap, just that sometimes you want to use a void method. flatMap naturally is already able to handle RestAction<Void>, but map just cant. So the proposal for accept is really just about giving us a map variant that can deal with void.


That said, I am going to quickly push a version that only has also (since it can cover both use cases), renamed to onSuccess for the time being.

@Zabuzard Zabuzard changed the title Added RestAction#accept and RestAction#also Added RestAction#onSuccess Aug 29, 2022
@MinnDevelopment
Copy link
Member

just that sometimes you want to use a void method

Could you give an example use-case?

@Zabuzard
Copy link
Contributor Author

Zabuzard commented Aug 29, 2022

just that sometimes you want to use a void method

Could you give an example use-case?

Looking through the code base, I found a couple like this:

example

So there is a method that is void and its clearly part of the action chain. Its not some "side-operation". Its supposed to partipate in the chain. But at the same time, the chain is not at an end yet and is supposed to continue (so queue(onSuccess) doesnt do the trick).

So the input to the map has to be routed around the call, so that it acts as the output again.

In my opinion, the motivation is the same as for .map or .flatMap. You want to execute some operation on the result and then continue the chain with more. Only difference is that in this case you do not add any new data-transformation to it, i.e. void.


I also found a second use case in our code base, that might be in the need for a helper:

second example

Here, one wants to flatMap something that is RestAction<Void>, but instead of having it Void, it should reuse the existing payload instead. So this would be some sort of RestAction<T> onSuccess(Function<T, RestAction<Void>>) variant.

A bit niche though, maybe not in the need for a general purpose method - unless others experienced this use case as well.

@MinnDevelopment
Copy link
Member

So there is a method that is void and its clearly part of the action chain. Its not some "side-operation". Its supposed to partipate in the chain. But at the same time, the chain is not at an end yet and is supposed to continue (so queue(onSuccess) doesnt do the trick).

To me, it seems like onSuccess can be used for this, since that is exactly how it works. I don't really understand the problem here.

Here, one wants to flatMap something that is RestAction, but instead of having it Void, it should reuse the existing payload instead. So this would be some sort of RestAction onSuccess(Function<T, RestAction>) variant.

I definitely don't think this is something we should have.

@Zabuzard
Copy link
Contributor Author

Zabuzard commented Aug 29, 2022

To me, it seems like onSuccess can be used for this, since that is exactly how it works. I don't really understand the problem here.

I dont quite follow. Such a method does not exist on RestAction yet. How would you implement above without the utility added in this PR?

The chain is:

  • DM user (RestAction)
  • warn user (void)
  • send feedback (map to MessageEmbed)
  • reply embeds (flatMap with a RestAction)

in that order. And any failure should cause the whole chain to fail.

Also, this chain didnt end yet. It returns it as RestAction for more additions, if desired. Its not feasible to end it already.

The motivation is exactly the same as for map or flatMap. You want to add an action to the chain - with the difference that this action doesnt transform but just consume.

@Zabuzard
Copy link
Contributor Author

Zabuzard commented Sep 4, 2022

Any news on this?

@MinnDevelopment MinnDevelopment merged commit 567693e into discord-jda:master Sep 20, 2022
@Zabuzard Zabuzard deleted the feature/restaction_accept_also branch September 20, 2022 11:57
mergify bot referenced this pull request in SvenKirschbaum/musikbot-client Jul 12, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [net.dv8tion:JDA](https://togithub.com/discord-jda/JDA) | `5.0.0-beta.24` -> `5.0.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/net.dv8tion:JDA/5.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/net.dv8tion:JDA/5.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/net.dv8tion:JDA/5.0.0-beta.24/5.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/net.dv8tion:JDA/5.0.0-beta.24/5.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>discord-jda/JDA (net.dv8tion:JDA)</summary>

### [`v5.0.0`](https://togithub.com/discord-jda/JDA/releases/tag/v5.0.0): | End of beta phase

### The 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**](https://jda.wiki/introduction/migration-v4-v5/) 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` becomes `SlashCommandInteractionEvent`
-   `ButtonClickEvent` becomes `ButtonInteractionEvent`

Similarly, we've renamed component types slightly:

-   `SelectionMenu` is now [`StringSelectMenu`](https://docs.jda.wiki/net/dv8tion/jda/api/interactions/components/selections/StringSelectMenu.html), while adding a new [`EntitySelectMenu`](https://docs.jda.wiki/net/dv8tion/jda/api/interactions/components/selections/EntitySelectMenu.html)
-   What was previously called `Component` has now been renamed to `ActionComponent` and `ItemComponent`, allowing us to introduce `Component` as an abstraction over both `Button` and `ActionRow` (which is now a `LayoutComponent`). The new [`Component`](https://docs.jda.wiki/net/dv8tion/jda/api/interactions/components/Component.html) interface is now an abstraction over both [`ItemComponent`](https://docs.jda.wiki/net/dv8tion/jda/api/interactions/components/ItemComponent.html) and [`LayoutComponent`](https://docs.jda.wiki/net/dv8tion/jda/api/interactions/components/LayoutComponent.html).

To learn more about interactions in JDA 5, take a look at our [Interactions Wiki Guide](https://jda.wiki/using-jda/interactions/).

##### 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`](https://docs.jda.wiki/net/dv8tion/jda/api/entities/channel/Channel.html)
-   [`GuildChannel`](https://docs.jda.wiki/net/dv8tion/jda/api/entities/channel/middleman/GuildChannel.html)
-   [`MessageChannel`](https://docs.jda.wiki/net/dv8tion/jda/api/entities/channel/middleman/MessageChannel.html) and [`GuildMessageChannel`](https://docs.jda.wiki/net/dv8tion/jda/api/entities/channel/middleman/GuildMessageChannel.html)
-   [`AudioChannel`](https://docs.jda.wiki/net/dv8tion/jda/api/entities/channel/middleman/AudioChannel.html)

As well as more specific features or attributes of channels:

-   [`IPermissionContainer`](https://docs.jda.wiki/net/dv8tion/jda/api/entities/channel/attribute/IPermissionContainer.html)
-   [`IPositionableChannel`](https://docs.jda.wiki/net/dv8tion/jda/api/entities/channel/attribute/IPositionableChannel.html)
-   [`IThreadContainer`](https://docs.jda.wiki/net/dv8tion/jda/api/entities/channel/attribute/IThreadContainer.html)
-   [`IWebhookContainer`](https://docs.jda.wiki/net/dv8tion/jda/api/entities/channel/attribute/IWebhookContainer.html)
-   etc.

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 with `getChannel().asTextChannel()`. However, you can also use the standard features of the unions directly. For instance, a [`MessageChannelUnion`](https://docs.jda.wiki/net/dv8tion/jda/api/entities/channel/unions/MessageChannelUnion.html) allows to send messages and these specialization methods:

```java
MessageChannelUnion channel = event.getChannel();
channel.sendMessage("hello").queue();
if (channel.getType() == TEXT) {
  channel.asTextChannel().getManager().setTopic("test topic").queue();
}
```

Cache access has also seen some improvement, by introducing a new [`getChannelById(Class, long)`](https://docs.jda.wiki/net/dv8tion/jda/api/entities/channel/attribute/IGuildChannelContainer.html#getChannelById\(java.lang.Class,long\)) method, allowing to just get a `MessageChannel` without worrying about the concrete type.

```java
GuildMessageChannel channel = guild.getChannelById(GuildMessageChannel.class, 125227483518861312L);
channel.sendMessage("Hello general chat!").queue();
```

Learn more about the channel rework in [Channel Rework](https://jda.wiki/introduction/migration-v4-v5/#channel-rework).

##### Message Features

We've refactored our message sending interfaces to be more consistent, by abstracting `MessageAction`, `MessageBuilder`, and `ReplyAction` into shared interfaces [`MessageCreateRequest`](https://docs.jda.wiki/net/dv8tion/jda/api/utils/messages/MessageCreateRequest.html) and [`MessageEditRequest`](https://docs.jda.wiki/net/dv8tion/jda/api/utils/messages/MessageEditRequest.html). This makes all message sending code consistent. We recommend to simply chain your builder-like code directly on send messages:

```java
channel.sendMessage("Hello World")
  .setComponents(ActionRow.of(button1, button2))
  .setEmbeds(embed1, embed2)
  .setFiles(files)
  .queue();
```

However, if you need to use builders, we've introduced [MessageEditBuilder](https://docs.jda.wiki/net/dv8tion/jda/api/utils/messages/MessageEditBuilder.html) and [MessageCreateBuilder](https://docs.jda.wiki/net/dv8tion/jda/api/utils/messages/MessageCreateBuilder.html) to replace the old `MessageBuilder` utility. You can also now use [`SplitUtil`](https://docs.jda.wiki/net/dv8tion/jda/api/utils/SplitUtil.html) 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`](https://docs.jda.wiki/net/dv8tion/jda/api/utils/FileUpload.html) type that unifies all attachments into a single type.

```java
FileUpload file = FileUpload.fromData(new File("myFile.png"), "image.png")
  .setDescription("this is my alt text for screenreaders, allowing to make accessible images in your messages!");
channel.sendFiles(file).queue();
```

Learn more about the changes to message sending in [Message Send/Edit Rework](https://jda.wiki/introduction/migration-v4-v5/#message-sendedit-rework).

##### Emojis and Stickers

In JDA 5, we have decided to unify all emoji types into a consistent type structure:

-   [`Emoji`](https://docs.jda.wiki/net/dv8tion/jda/api/entities/emoji/Emoji.html), a top-level interface representing all emoji as well as a type discriminator with [`Emoji#getType`](https://docs.jda.wiki/net/dv8tion/jda/api/entities/emoji/Emoji.html#getType\(\))
-   [`UnicodeEmoji`](https://docs.jda.wiki/net/dv8tion/jda/api/entities/emoji/UnicodeEmoji.html), standard unicode emoji such as 🤔
-   [`CustomEmoji`](https://docs.jda.wiki/net/dv8tion/jda/api/entities/emoji/CustomEmoji.html), custom emoji found in messages, like `<:minn:245267426227388416>`
-   [`RichCustomEmoji`](https://docs.jda.wiki/net/dv8tion/jda/api/entities/emoji/RichCustomEmoji.html), emoji with more information such as owner, accessible through the guild settings.
-   [`EmojiUnion`](https://docs.jda.wiki/net/dv8tion/jda/api/entities/emoji/EmojiUnion.html), adding type casting for things like [`MessageReaction#getEmoji`](https://docs.jda.wiki/net/dv8tion/jda/api/entities/MessageReaction.html#getEmoji\(\))

These new emoji types replace the duplication of `ReactionEmote` and `Activity.Emoji`.

Stickers have also been refactored in a similar way, making a clear distinction between stickers found in messages and guild settings:

-   [`Sticker`](https://docs.jda.wiki/net/dv8tion/jda/api/entities/sticker/Sticker.html), a top-level abstraction of all sticker types
-   [`StickerItem`](https://docs.jda.wiki/net/dv8tion/jda/api/entities/sticker/StickerItem.html), stickers found in messages
-   [`RichSticker`](https://docs.jda.wiki/net/dv8tion/jda/api/entities/sticker/RichSticker.html), stickers with more information that is usually omitted for messages (sticker items)
-   [`StandardSticker`](https://docs.jda.wiki/net/dv8tion/jda/api/entities/sticker/StandardSticker.html), rich stickers provided by nitro instead of guilds
-   [`GuildSticker`](https://docs.jda.wiki/net/dv8tion/jda/api/entities/sticker/GuildSticker.html), rich stickers provided in guilds
-   [`StickerUnion`](https://docs.jda.wiki/net/dv8tion/jda/api/entities/sticker/StickerUnion.html), adding type casting

Learn more about the changes to emojis and stickers in [Sticker and Emoji Rework](https://jda.wiki/introduction/migration-v4-v5/#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

```gradle
repositories {
    mavenCentral()
}
dependencies {
    implementation("net.dv8tion:JDA:5.0.0")
}
```

#### Maven

```xml
<dependency>
    <groupId>net.dv8tion</groupId>
    <artifactId>JDA</artifactId>
    <version>5.0.0</version> 
</dependency>
```

### Changelog (5.0.0-beta.24 -> 5.0.0)

The changes since the latest beta release to this release.

-   Allow UserSnowflake subtypes in bulk ban methods by [@&#8203;freya022](https://togithub.com/freya022) ([#&#8203;2689](https://togithub.com/discord-jda/JDA/issues/2689))
-   Update MessageType enum by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) ([#&#8203;2691](https://togithub.com/discord-jda/JDA/issues/2691))
-   Improve Unknown Interaction error responses by [@&#8203;freya022](https://togithub.com/freya022) ([#&#8203;2687](https://togithub.com/discord-jda/JDA/issues/2687))
-   Update ErrorResponse enum by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) ([#&#8203;2693](https://togithub.com/discord-jda/JDA/issues/2693))
-   Add missing permissions by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) ([#&#8203;2690](https://togithub.com/discord-jda/JDA/issues/2690))
-   Update and remove deprecated symbols by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) ([#&#8203;2686](https://togithub.com/discord-jda/JDA/issues/2686))

### 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](https://togithub.com/discord-jda/JDA/compare/v4.4.0...v5.0.0).

Thank you all for contributing!

#### New Features

<details>
<summary>New feature additions since <b>4.4.0</b></summary>

-   Add GenericMessageEvent#getThreadChannel() by [@&#8203;rtm516](https://togithub.com/rtm516) in [https://github.com/discord-jda/JDA/pull/1924](https://togithub.com/discord-jda/JDA/pull/1924)
-   Add Message.Attachment#getDescription by [@&#8203;sebm253](https://togithub.com/sebm253) in [https://github.com/discord-jda/JDA/pull/1930](https://togithub.com/discord-jda/JDA/pull/1930)
-   Add Guild#isBoostProgressBarEnabled by [@&#8203;sebm253](https://togithub.com/sebm253) in [https://github.com/discord-jda/JDA/pull/1891](https://togithub.com/discord-jda/JDA/pull/1891)
-   Add support for member timeouts by [@&#8203;sebm253](https://togithub.com/sebm253) in [https://github.com/discord-jda/JDA/pull/1902](https://togithub.com/discord-jda/JDA/pull/1902)
-   Add support for attachment options by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2001](https://togithub.com/discord-jda/JDA/pull/2001)
-   Add CommandInteractionPayload#getOption fallback overloads by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2018](https://togithub.com/discord-jda/JDA/pull/2018)
-   Add Booster to memberCachePolicy by [@&#8203;sofiadparamo](https://togithub.com/sofiadparamo) in [https://github.com/discord-jda/JDA/pull/2022](https://togithub.com/discord-jda/JDA/pull/2022)
-   Add PaginationAction#order by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/1945](https://togithub.com/discord-jda/JDA/pull/1945)
-   Add Tags, Default Install Url, Scopes and Permissions to ApplicationInfo by [@&#8203;Xirado](https://togithub.com/Xirado) in [https://github.com/discord-jda/JDA/pull/1936](https://togithub.com/discord-jda/JDA/pull/1936)
-   Add CommandInteractionPayload#isGuildCommand by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2091](https://togithub.com/discord-jda/JDA/pull/2091)
-   Add UserSnowflake and improve User#fromId by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2065](https://togithub.com/discord-jda/JDA/pull/2065)
-   Add support for modals by [@&#8203;Xirado](https://togithub.com/Xirado) in [https://github.com/discord-jda/JDA/pull/2024](https://togithub.com/discord-jda/JDA/pull/2024)
-   Add ImageProxy & FileProxy by [@&#8203;freya022](https://togithub.com/freya022) in [https://github.com/discord-jda/JDA/pull/1955](https://togithub.com/discord-jda/JDA/pull/1955)
-   Add Message#getStartedThread and ThreadChannel#retrieveParentMessage by [@&#8203;Almighty-Satan](https://togithub.com/Almighty-Satan) in [https://github.com/discord-jda/JDA/pull/2099](https://togithub.com/discord-jda/JDA/pull/2099)
-   Add FileUpload class by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2120](https://togithub.com/discord-jda/JDA/pull/2120)
-   Add Support for Application-Command Permissions V2 by [@&#8203;Xirado](https://togithub.com/Xirado) in [https://github.com/discord-jda/JDA/pull/2113](https://togithub.com/discord-jda/JDA/pull/2113)
-   Application command localization by [@&#8203;freya022](https://togithub.com/freya022) in [https://github.com/discord-jda/JDA/pull/2090](https://togithub.com/discord-jda/JDA/pull/2090)
-   Add EmojiUnion by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2167](https://togithub.com/discord-jda/JDA/pull/2167)
-   Add JDABuilder#setEventPassthrough by [@&#8203;freya022](https://togithub.com/freya022) in [https://github.com/discord-jda/JDA/pull/2014](https://togithub.com/discord-jda/JDA/pull/2014)
-   Add ApplicationInfo#getFlags by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2202](https://togithub.com/discord-jda/JDA/pull/2202)
-   Add support for setting voice region on channel creation/copy by [@&#8203;CheesyGamer77](https://togithub.com/CheesyGamer77) in [https://github.com/discord-jda/JDA/pull/2209](https://togithub.com/discord-jda/JDA/pull/2209)
-   add support for string option bounds by [@&#8203;sebm253](https://togithub.com/sebm253) in [https://github.com/discord-jda/JDA/pull/2169](https://togithub.com/discord-jda/JDA/pull/2169)
-   Add DataPath util by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2212](https://togithub.com/discord-jda/JDA/pull/2212)
-   Add category feature to ChannelOrderAction by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2136](https://togithub.com/discord-jda/JDA/pull/2136)
-   Added RestAction#onSuccess by [@&#8203;Zabuzard](https://togithub.com/Zabuzard) in [https://github.com/discord-jda/JDA/pull/2227](https://togithub.com/discord-jda/JDA/pull/2227)
-   Add support for forum channels by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2184](https://togithub.com/discord-jda/JDA/pull/2184)
-   Add GuildManager#setFeatures by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2222](https://togithub.com/discord-jda/JDA/pull/2222)
-   Add support for guild scheduled events v2 by [@&#8203;Mitmocc](https://togithub.com/Mitmocc) in [https://github.com/discord-jda/JDA/pull/2047](https://togithub.com/discord-jda/JDA/pull/2047)
-   Implement new select menus by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2287](https://togithub.com/discord-jda/JDA/pull/2287)
-   Add slash command mentions by [@&#8203;freya022](https://togithub.com/freya022) in [https://github.com/discord-jda/JDA/pull/2251](https://togithub.com/discord-jda/JDA/pull/2251)
-   Implement "ACTIVE_DEVELOPER" UserFlag by [@&#8203;jasonlessenich](https://togithub.com/jasonlessenich) in [https://github.com/discord-jda/JDA/pull/2326](https://togithub.com/discord-jda/JDA/pull/2326)
-   Add support for age-restricted (nsfw) commands by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2325](https://togithub.com/discord-jda/JDA/pull/2325)
-   Add application_id support for received messages by [@&#8203;Almighty-Satan](https://togithub.com/Almighty-Satan) in [https://github.com/discord-jda/JDA/pull/2335](https://togithub.com/discord-jda/JDA/pull/2335)
-   Implement thread member pagination by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2338](https://togithub.com/discord-jda/JDA/pull/2338)
-   Add guild welcome screens by [@&#8203;freya022](https://togithub.com/freya022) in [https://github.com/discord-jda/JDA/pull/2264](https://togithub.com/discord-jda/JDA/pull/2264)
-   Add support for gif stickers by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2377](https://togithub.com/discord-jda/JDA/pull/2377)
-   Add support for reverse audit-log iteration by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2370](https://togithub.com/discord-jda/JDA/pull/2370)
-   Add GuildAuditLogEntryCreateEvent by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2380](https://togithub.com/discord-jda/JDA/pull/2380)
-   Add `SUPPRESS_NOTIFICATIONS` flag for message by [@&#8203;Mysterious-Dev](https://togithub.com/Mysterious-Dev) in [https://github.com/discord-jda/JDA/pull/2393](https://togithub.com/discord-jda/JDA/pull/2393)
-   Add new message types by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2371](https://togithub.com/discord-jda/JDA/pull/2371)
-   Add rate-limiter customization by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2307](https://togithub.com/discord-jda/JDA/pull/2307)
-   Add support for member flags by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2417](https://togithub.com/discord-jda/JDA/pull/2417)
-   Support custom timeout on tasks by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2439](https://togithub.com/discord-jda/JDA/pull/2439)
-   Add EmbedBuilder#setUrl by [@&#8203;Xirado](https://togithub.com/Xirado) in [https://github.com/discord-jda/JDA/pull/2449](https://togithub.com/discord-jda/JDA/pull/2449)
-   Add voice message read support by [@&#8203;RedDaedalus](https://togithub.com/RedDaedalus) in [https://github.com/discord-jda/JDA/pull/2445](https://togithub.com/discord-jda/JDA/pull/2445)
-   Add automod support by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2429](https://togithub.com/discord-jda/JDA/pull/2429)
-   Add ThreadChannel#retrieveStartMessage by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2438](https://togithub.com/discord-jda/JDA/pull/2438)
-   Support embed deserialization from JSON data by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2471](https://togithub.com/discord-jda/JDA/pull/2471)
-   Add the message author id to message reaction events by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2499](https://togithub.com/discord-jda/JDA/pull/2499)
-   Add supplier based FileUpload by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2508](https://togithub.com/discord-jda/JDA/pull/2508)
-   Add custom status support for bots by [@&#8203;RedDaedalus](https://togithub.com/RedDaedalus) in [https://github.com/discord-jda/JDA/pull/2521](https://togithub.com/discord-jda/JDA/pull/2521)
-   Allow slowmode & nsfw in Stage Channels by [@&#8203;kazuryyx](https://togithub.com/kazuryyx) in [https://github.com/discord-jda/JDA/pull/2538](https://togithub.com/discord-jda/JDA/pull/2538)
-   Add LRUMemberCachePolicy by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2506](https://togithub.com/discord-jda/JDA/pull/2506)
-   Add initial support for media channels by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2516](https://togithub.com/discord-jda/JDA/pull/2516)
-   Add default_values support by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2542](https://togithub.com/discord-jda/JDA/pull/2542)
-   Implement super reaction handling by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2554](https://togithub.com/discord-jda/JDA/pull/2554)
-   Add voice status feature by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2532](https://togithub.com/discord-jda/JDA/pull/2532)
-   Add missing proxy url field to the MessageEmbed.VideoInfo class by [@&#8203;shaksternano](https://togithub.com/shaksternano) in [https://github.com/discord-jda/JDA/pull/2618](https://togithub.com/discord-jda/JDA/pull/2618)
-   Add support for bulk banning users by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2630](https://togithub.com/discord-jda/JDA/pull/2630)
-   Add the ability to set the bot banner by [@&#8203;freya022](https://togithub.com/freya022) in [https://github.com/discord-jda/JDA/pull/2629](https://togithub.com/discord-jda/JDA/pull/2629)
-   Add support for premium app subscriptions by [@&#8203;Giuliopime](https://togithub.com/Giuliopime) in [https://github.com/discord-jda/JDA/pull/2583](https://togithub.com/discord-jda/JDA/pull/2583)
-   Poll support by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2649](https://togithub.com/discord-jda/JDA/pull/2649)
-   Add missing features relating to premium app subscriptions by [@&#8203;Tobias123567](https://togithub.com/Tobias123567) in [https://github.com/discord-jda/JDA/pull/2667](https://togithub.com/discord-jda/JDA/pull/2667)
-   Update MessageType enum by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2691](https://togithub.com/discord-jda/JDA/pull/2691)
-   Update ErrorResponse enum by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2693](https://togithub.com/discord-jda/JDA/pull/2693)
-   Add missing permissions by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2690](https://togithub.com/discord-jda/JDA/pull/2690)

</details>

#### Breaking Changes

<details>
<summary>Breaking changes since <b>4.4.0</b></summary>

-   Update Activity(Type) by [@&#8203;DManstrator](https://togithub.com/DManstrator) in [https://github.com/discord-jda/JDA/pull/1798](https://togithub.com/discord-jda/JDA/pull/1798)
-   Update Permissions for JDA5 by [@&#8203;DManstrator](https://togithub.com/DManstrator) in [https://github.com/discord-jda/JDA/pull/1797](https://togithub.com/discord-jda/JDA/pull/1797)
-   Remove GuildManager#setVanityCode by [@&#8203;sebm253](https://togithub.com/sebm253) in [https://github.com/discord-jda/JDA/pull/1933](https://togithub.com/discord-jda/JDA/pull/1933)
-   Interaction Rework by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/1971](https://togithub.com/discord-jda/JDA/pull/1971)
-   Make getDefaultChannel return BaseGuildMessageChannel by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2016](https://togithub.com/discord-jda/JDA/pull/2016)
-   Change PrivateChannel#getUser to handle API nullability by [@&#8203;oliver276](https://togithub.com/oliver276) in [https://github.com/discord-jda/JDA/pull/2012](https://togithub.com/discord-jda/JDA/pull/2012)
-   Remove StoreChannel by [@&#8203;V-Play-Games](https://togithub.com/V-Play-Games) in [https://github.com/discord-jda/JDA/pull/2011](https://togithub.com/discord-jda/JDA/pull/2011)
-   Change some voice Regions and remove VOICE_CHANNEL_REGIONS set by [@&#8203;sebm253](https://togithub.com/sebm253) in [https://github.com/discord-jda/JDA/pull/1962](https://togithub.com/discord-jda/JDA/pull/1962)
-   Fix misspelled ErrorResponse enum value by [@&#8203;Xirado](https://togithub.com/Xirado) in [https://github.com/discord-jda/JDA/pull/2031](https://togithub.com/discord-jda/JDA/pull/2031)
-   Implement pagination for the guild ban list by [@&#8203;RedDaedalus](https://togithub.com/RedDaedalus) in [https://github.com/discord-jda/JDA/pull/2076](https://togithub.com/discord-jda/JDA/pull/2076)
-   Return MessageReaction for getReactionX methods by [@&#8203;duncte123](https://togithub.com/duncte123) in [https://github.com/discord-jda/JDA/pull/2026](https://togithub.com/discord-jda/JDA/pull/2026)
-   Remove confusing permission override methods by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2067](https://togithub.com/discord-jda/JDA/pull/2067)
-   Remove manager instance cache by [@&#8203;duncte123](https://togithub.com/duncte123) in [https://github.com/discord-jda/JDA/pull/2106](https://togithub.com/discord-jda/JDA/pull/2106)
-   Message interface declutter: Message#getMentions() by [@&#8203;DV8FromTheWorld](https://togithub.com/DV8FromTheWorld) in [https://github.com/discord-jda/JDA/pull/2015](https://togithub.com/discord-jda/JDA/pull/2015)
-   Rework stickers by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2104](https://togithub.com/discord-jda/JDA/pull/2104)
-   Changed addField String name and String Value to Nonnull by [@&#8203;RealYusufIsmail](https://togithub.com/RealYusufIsmail) in [https://github.com/discord-jda/JDA/pull/2133](https://togithub.com/discord-jda/JDA/pull/2133)
-   Uniform representation of emoji by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2117](https://togithub.com/discord-jda/JDA/pull/2117)
-   Introduce Channel Unions by [@&#8203;DV8FromTheWorld](https://togithub.com/DV8FromTheWorld) in [https://github.com/discord-jda/JDA/pull/2138](https://togithub.com/discord-jda/JDA/pull/2138)
-   Replace occurrences of Locale with DiscordLocale by [@&#8203;MineKing9534](https://togithub.com/MineKing9534) in [https://github.com/discord-jda/JDA/pull/2173](https://togithub.com/discord-jda/JDA/pull/2173)
-   Message Rework by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2187](https://togithub.com/discord-jda/JDA/pull/2187)
-   Remove ChannelAction#setType by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2218](https://togithub.com/discord-jda/JDA/pull/2218)
-   Invalid token exception by [@&#8203;java-coding-prodigy](https://togithub.com/java-coding-prodigy) in [https://github.com/discord-jda/JDA/pull/2025](https://togithub.com/discord-jda/JDA/pull/2025)
-   Add support for ban deletion with seconds precision by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2229](https://togithub.com/discord-jda/JDA/pull/2229)
-   Update to gateway version 10 by [@&#8203;freyacodes](https://togithub.com/freyacodes) in [https://github.com/discord-jda/JDA/pull/2228](https://togithub.com/discord-jda/JDA/pull/2228)
-   Move channels to separate package and cleanup code by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2180](https://togithub.com/discord-jda/JDA/pull/2180)
-   Update event hierarchy by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/1952](https://togithub.com/discord-jda/JDA/pull/1952)
-   Make Widget an interface and move it to it's own file by [@&#8203;Almighty-Satan](https://togithub.com/Almighty-Satan) in [https://github.com/discord-jda/JDA/pull/2295](https://togithub.com/discord-jda/JDA/pull/2295)
-   Remove AccountType by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2420](https://togithub.com/discord-jda/JDA/pull/2420)
-   Deprecate and replace onUserSpeaking by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2496](https://togithub.com/discord-jda/JDA/pull/2496)

</details>

#### Other Changes

<details>
<summary>Other noteworthy changes since <b>4.4.0</b></summary>

-   Add Missing Varargs and Methods Accepting Collection Arguments by [@&#8203;aasmart](https://togithub.com/aasmart) in [https://github.com/discord-jda/JDA/pull/1810](https://togithub.com/discord-jda/JDA/pull/1810)
-   Make OptionData#addChoice accept long instead of int by [@&#8203;Xirado](https://togithub.com/Xirado) in [https://github.com/discord-jda/JDA/pull/1816](https://togithub.com/discord-jda/JDA/pull/1816)
-   Make SelectionMenu#getOptions return an unmodifiable list by [@&#8203;freya022](https://togithub.com/freya022) in [https://github.com/discord-jda/JDA/pull/1922](https://togithub.com/discord-jda/JDA/pull/1922)
-   Make Guild#moveVoiceMember support AudioChannel instead by [@&#8203;sebm253](https://togithub.com/sebm253) in [https://github.com/discord-jda/JDA/pull/1928](https://togithub.com/discord-jda/JDA/pull/1928)
-   Add support for animated guild banners by [@&#8203;sebm253](https://togithub.com/sebm253) in [https://github.com/discord-jda/JDA/pull/1897](https://togithub.com/discord-jda/JDA/pull/1897)
-   Hardcode gateway url by [@&#8203;Xirado](https://togithub.com/Xirado) in [https://github.com/discord-jda/JDA/pull/1957](https://togithub.com/discord-jda/JDA/pull/1957)
-   Move requestToSpeak to StageChannel by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/1978](https://togithub.com/discord-jda/JDA/pull/1978)
-   Add IGuildChannelContainer and getChannelById(Class, id) by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/1949](https://togithub.com/discord-jda/JDA/pull/1949)
-   Don't override latest message id on deletion event by [@&#8203;ishwi](https://togithub.com/ishwi) in [https://github.com/discord-jda/JDA/pull/2013](https://togithub.com/discord-jda/JDA/pull/2013)
-   Remove mentioning members with ! by [@&#8203;Tais993](https://togithub.com/Tais993) in [https://github.com/discord-jda/JDA/pull/2081](https://togithub.com/discord-jda/JDA/pull/2081)
-   Add new message types for automod by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2116](https://togithub.com/discord-jda/JDA/pull/2116)
-   Do not ignore member cache policy when chunking is enabled by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2053](https://togithub.com/discord-jda/JDA/pull/2053)
-   Make more use of CacheRestAction by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2158](https://togithub.com/discord-jda/JDA/pull/2158)
-   Handle text in voice channels by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2072](https://togithub.com/discord-jda/JDA/pull/2072)
-   Update to API version 10 by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2165](https://togithub.com/discord-jda/JDA/pull/2165)
-   Implement gateway resume url handling by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2203](https://togithub.com/discord-jda/JDA/pull/2203)
-   Add support for component-only messages by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2241](https://togithub.com/discord-jda/JDA/pull/2241)
-   Use String#intern for guild features and atoms by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2235](https://togithub.com/discord-jda/JDA/pull/2235)
-   Improve `toString` methods by [@&#8203;freya022](https://togithub.com/freya022) in [https://github.com/discord-jda/JDA/pull/2273](https://togithub.com/discord-jda/JDA/pull/2273)
-   Forward shutdown reason to awaitStatus exception by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2268](https://togithub.com/discord-jda/JDA/pull/2268)
-   Improve GuildChannel#getPosition and Guild#getChannels by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2320](https://togithub.com/discord-jda/JDA/pull/2320)
-   Replace lock code with atomic int by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2359](https://togithub.com/discord-jda/JDA/pull/2359)
-   Improve implementation of command data by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2258](https://togithub.com/discord-jda/JDA/pull/2258)
-   Necessary additions for role subscriptions by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2375](https://togithub.com/discord-jda/JDA/pull/2375)
-   Support messages in stage channels by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2399](https://togithub.com/discord-jda/JDA/pull/2399)
-   Start migration to new username API by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2462](https://togithub.com/discord-jda/JDA/pull/2462)
-   Improve handling of method discovery in AnnotatedEventManager by [@&#8203;freya022](https://togithub.com/freya022) in [https://github.com/discord-jda/JDA/pull/2454](https://togithub.com/discord-jda/JDA/pull/2454)
-   Change thread model used for requests by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2463](https://togithub.com/discord-jda/JDA/pull/2463)
-   Add more logging to request handling by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2589](https://togithub.com/discord-jda/JDA/pull/2589)
-   Add missing message types by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2531](https://togithub.com/discord-jda/JDA/pull/2531)
-   Unified channel cache by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2528](https://togithub.com/discord-jda/JDA/pull/2528)
-   Add support for enforce_nonce by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2614](https://togithub.com/discord-jda/JDA/pull/2614)
-   Create an exception when receiving UNKNOWN_WEBHOOK in interaction hooks by [@&#8203;freya022](https://togithub.com/freya022) in [https://github.com/discord-jda/JDA/pull/2621](https://togithub.com/discord-jda/JDA/pull/2621)
-   Add USER_MUST_BE_VERIFIED ErrorResponse by [@&#8203;GitMilchi](https://togithub.com/GitMilchi) in [https://github.com/discord-jda/JDA/pull/2651](https://togithub.com/discord-jda/JDA/pull/2651)
-   Update permission enum by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2654](https://togithub.com/discord-jda/JDA/pull/2654)
-   Add more static analyzer annotations by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2675](https://togithub.com/discord-jda/JDA/pull/2675)
-   Improve Unknown Interaction error responses by [@&#8203;freya022](https://togithub.com/freya022) in [https://github.com/discord-jda/JDA/pull/2687](https://togithub.com/discord-jda/JDA/pull/2687)

</details>

#### Bug Fixes

<details>
<summary>Bugs fixed since <b>4.4.0</b></summary>

-   Fix wrong check in GenericMessageEvent#getGuildChannel by [@&#8203;sebm253](https://togithub.com/sebm253) in [https://github.com/discord-jda/JDA/pull/1927](https://togithub.com/discord-jda/JDA/pull/1927)
-   Fix rate limiter not shutting down if there is an empty bucket at shutdown by [@&#8203;Vankka](https://togithub.com/Vankka) in [https://github.com/discord-jda/JDA/pull/2080](https://togithub.com/discord-jda/JDA/pull/2080)
-   Prevent creating OptionData with OptionType#UNKNOWN by [@&#8203;sebm253](https://togithub.com/sebm253) in [https://github.com/discord-jda/JDA/pull/2101](https://togithub.com/discord-jda/JDA/pull/2101)
-   Handle emoji_id sometimes being 0 instead of null by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2279](https://togithub.com/discord-jda/JDA/pull/2279)
-   Use deep copy for layout components when applying message data by [@&#8203;freya022](https://togithub.com/freya022) in [https://github.com/discord-jda/JDA/pull/2236](https://togithub.com/discord-jda/JDA/pull/2236)
-   Fix some lock issues by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2339](https://togithub.com/discord-jda/JDA/pull/2339)
-   Change handling of speaking updates in voice connections by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2240](https://togithub.com/discord-jda/JDA/pull/2240)
-   Improve conditional waiting and shutdown handling by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2269](https://togithub.com/discord-jda/JDA/pull/2269)
-   Fix slow shutdown during reconnects by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2464](https://togithub.com/discord-jda/JDA/pull/2464)
-   Update modulo for default avatars by id by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2475](https://togithub.com/discord-jda/JDA/pull/2475)
-   Fix handling of wrong length discriminators by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2478](https://togithub.com/discord-jda/JDA/pull/2478)
-   Handle clyde in DMs correctly by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2489](https://togithub.com/discord-jda/JDA/pull/2489)
-   Update User#formatTo by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2492](https://togithub.com/discord-jda/JDA/pull/2492)
-   Improve handling of query parameters in image proxy by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2551](https://togithub.com/discord-jda/JDA/pull/2551)
-   Fix orphaned rate-limit buckets by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2585](https://togithub.com/discord-jda/JDA/pull/2585)
-   Handle numeric keys for ETF maps by [@&#8203;MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2642](https://togithub.com/discord-jda/JDA/pull/2642)
-   Fix ClassCastException in EntityBuilder#updateMemberCache by [@&#8203;Xirado](https://togithub.com/Xirado) in [https://github.com/discord-jda/JDA/pull/2660](https://togithub.com/discord-jda/JDA/pull/2660)

</details>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 6am on saturday" in timezone Europe/Berlin, 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 [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/SvenKirschbaum/musikbot-client).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants