Skip to content

Commit

Permalink
Update dependency net.dv8tion:JDA to v5.0.0-beta.22 (#35)
Browse files Browse the repository at this point in the history
[![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/DV8FromTheWorld/JDA) |
`5.0.0-beta.21` -> `5.0.0-beta.22` |
[![age](https://developer.mend.io/api/mc/badges/age/maven/net.dv8tion:JDA/5.0.0-beta.22?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/net.dv8tion:JDA/5.0.0-beta.22?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.21/5.0.0-beta.22?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.21/5.0.0-beta.22?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>DV8FromTheWorld/JDA (net.dv8tion:JDA)</summary>

###
[`v5.0.0-beta.22`](https://togithub.com/discord-jda/JDA/releases/tag/v5.0.0-beta.22):
| Bulk ban, premium apps, bug fixes

### Overview

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
([#&#8203;2583](https://togithub.com/DV8FromTheWorld/JDA/issues/2583))

If your bot is eligible for monetization, you can now use JDA to handle
[**entitlements**](https://docs.jda.wiki/net/dv8tion/jda/api/interactions/Interaction.html#getEntitlements\(\))
in interactions to restrict features. With
[`event.replyWithPremiumRequired()`](https://docs.jda.wiki/net/dv8tion/jda/api/interactions/callbacks/IPremiumRequiredReplyCallback.html#replyWithPremiumRequired\(\)),
you can upsell a premium subscription to a user:


![b306d1ccc7205d2291f4535f912a790e](https://togithub.com/discord-jda/JDA/assets/18090140/61197d9f-b900-4259-9722-c4a357960482)

Read more about entitlements and premium app subscriptions in the
[Discord Developer
Docs](https://discord.com/developers/docs/monetization/app-subscriptions).

##### Bulk Ban
([#&#8203;2630](https://togithub.com/DV8FromTheWorld/JDA/issues/2630))

You can now ban up to 200 users in one request using [`guild.ban(users,
messageDeleteTimeframe)`](https://docs.jda.wiki/net/dv8tion/jda/api/entities/Guild.html#ban\(java.util.Collection,java.time.Duration\)).

This endpoint has a few quirks to keep in mind:

- The
[BulkBanResponse](https://docs.jda.wiki/net/dv8tion/jda/api/entities/BulkBanResponse.html)
includes **failed users** and **banned users**
-   If a user was already banned, they are in the **failed users**
- If you don't have permissions to ban a user (higher role / owner),
they also appear in **failed users**
-   The self user also appears in **failed users**
-   If all users "failed" you get an error response instead

#### New Features

- 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)

#### Changes

- 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)

#### Bug Fixes

- Fix format specifiers when adding invalid choices by
[@&#8203;freya022](https://togithub.com/freya022) in
[https://github.com/discord-jda/JDA/pull/2628](https://togithub.com/discord-jda/JDA/pull/2628)
- Fix FlatMapRestAction predicate with complete or submit by
[@&#8203;Whizyyy](https://togithub.com/Whizyyy) in
[https://github.com/discord-jda/JDA/pull/2636](https://togithub.com/discord-jda/JDA/pull/2636)
- 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)

**Full Changelog**:
discord-jda/JDA@v5.0.0-beta.21...v5.0.0-beta.22

### Installation

#### Gradle

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

#### Maven

```xml
<dependency>
    <groupId>net.dv8tion</groupId>
    <artifactId>JDA</artifactId>
    <version>5.0.0-beta.22</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 [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/BachErik/Hypixel-Stats-generator).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
  • Loading branch information
BachErik authored Apr 7, 2024
2 parents 152c227 + 01edc1f commit fd05753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Hypixel-Stats-bot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<dependency>
<groupId>net.dv8tion</groupId>
<artifactId>JDA</artifactId>
<version>5.0.0-beta.21</version>
<version>5.0.0-beta.22</version>
<scope>compile</scope>
</dependency>
<!-- Logging stuff start -->
Expand Down

0 comments on commit fd05753

Please sign in to comment.