DV8FromTheWorld/JDA (net.dv8tion:JDA)
### [`v5.0.0-beta.21`](https://togithub.com/discord-jda/JDA/releases/tag/v5.0.0-beta.21): | Bug fixes and enforced nonce on messages
### Overview
This release fixes a few bugs but also implements a new behavior on message sending.
With the new [enforce nonce](https://discord.com/developers/docs/change-log#enforced-nonces-on-create-message-endpoint) 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](https://en.wikipedia.org/wiki/Cryptographic_nonce). You can still set a custom nonce using [setNonce](https://docs.jda.wiki/net/dv8tion/jda/api/requests/restaction/MessageCreateAction.html#setNonce\(java.lang.String\)), 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
- Add DiscordLocale values for these locales: Indonesian and Latin America (Spanish LATAM) by [@stackpan](https://togithub.com/stackpan) in [https://github.com/discord-jda/JDA/pull/2627](https://togithub.com/discord-jda/JDA/pull/2627)
#### Changes
- Add support for enforce_nonce by [@MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2614](https://togithub.com/discord-jda/JDA/pull/2614)
#### Bug Fixes
- Add missing generic type to shardmanager by [@duncte123](https://togithub.com/duncte123) in [https://github.com/discord-jda/JDA/pull/2612](https://togithub.com/discord-jda/JDA/pull/2612)
- Add missing proxy url field to the MessageEmbed.VideoInfo class by [@shaksternano](https://togithub.com/shaksternano) in [https://github.com/discord-jda/JDA/pull/2618](https://togithub.com/discord-jda/JDA/pull/2618)
- Fix suppressing embeds on messages with webhooks by [@freya022](https://togithub.com/freya022) in [https://github.com/discord-jda/JDA/pull/2620](https://togithub.com/discord-jda/JDA/pull/2620)
**Full Changelog**: https://github.com/discord-jda/JDA/compare/v5.0.0-beta.20...v5.0.0-beta.21
### Installation
#### Gradle
```gradle
repositories {
mavenCentral()
}
dependencies {
implementation("net.dv8tion:JDA:5.0.0-beta.21")
}
```
#### Maven
```xml
net.dv8tionJDA5.0.0-beta.21
```
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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. View repository job log here.
No new problems were found according to the checks applied
💡 Qodana analysis was run in the pull request mode: only the changed files were checked
View the detailed Qodana report
To be able to view the detailed Qodana report, you can either:
1. Register at [Qodana Cloud](https://qodana.cloud/) and [configure the action](https://github.com/jetbrains/qodana-action#qodana-cloud)
2. Use [GitHub Code Scanning with Qodana](https://github.com/jetbrains/qodana-action#github-code-scanning)
3. Host [Qodana report at GitHub Pages](https://github.com/JetBrains/qodana-action/blob/3a8e25f5caad8d8b01c1435f1ef7b19fe8b039a0/README.md#github-pages)
4. Inspect and use `qodana.sarif.json` (see [the Qodana SARIF format](https://www.jetbrains.com/help/qodana/qodana-sarif-output.html#Report+structure) for details)
To get `*.log` files or any other Qodana artifacts, run the action with `upload-result` option set to `true`,
so that the action will upload the files as the job artifacts:
```yaml
- name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2023.3.1
with:
upload-result: true
```
Contact Qodana team
Contact us at [qodana-support@jetbrains.com](mailto:qodana-support@jetbrains.com)
- Or via our issue tracker: https://jb.gg/qodana-issue
- Or share your feedback: https://jb.gg/qodana-discussions
This PR contains the following updates:
5.0.0-beta.20
->5.0.0-beta.21
Release Notes
DV8FromTheWorld/JDA (net.dv8tion:JDA)
### [`v5.0.0-beta.21`](https://togithub.com/discord-jda/JDA/releases/tag/v5.0.0-beta.21): | Bug fixes and enforced nonce on messages ### Overview This release fixes a few bugs but also implements a new behavior on message sending. With the new [enforce nonce](https://discord.com/developers/docs/change-log#enforced-nonces-on-create-message-endpoint) 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](https://en.wikipedia.org/wiki/Cryptographic_nonce). You can still set a custom nonce using [setNonce](https://docs.jda.wiki/net/dv8tion/jda/api/requests/restaction/MessageCreateAction.html#setNonce\(java.lang.String\)), 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 - Add DiscordLocale values for these locales: Indonesian and Latin America (Spanish LATAM) by [@stackpan](https://togithub.com/stackpan) in [https://github.com/discord-jda/JDA/pull/2627](https://togithub.com/discord-jda/JDA/pull/2627) #### Changes - Add support for enforce_nonce by [@MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2614](https://togithub.com/discord-jda/JDA/pull/2614) #### Bug Fixes - Add missing generic type to shardmanager by [@duncte123](https://togithub.com/duncte123) in [https://github.com/discord-jda/JDA/pull/2612](https://togithub.com/discord-jda/JDA/pull/2612) - Add missing proxy url field to the MessageEmbed.VideoInfo class by [@shaksternano](https://togithub.com/shaksternano) in [https://github.com/discord-jda/JDA/pull/2618](https://togithub.com/discord-jda/JDA/pull/2618) - Fix suppressing embeds on messages with webhooks by [@freya022](https://togithub.com/freya022) in [https://github.com/discord-jda/JDA/pull/2620](https://togithub.com/discord-jda/JDA/pull/2620) **Full Changelog**: https://github.com/discord-jda/JDA/compare/v5.0.0-beta.20...v5.0.0-beta.21 ### Installation #### Gradle ```gradle repositories { mavenCentral() } dependencies { implementation("net.dv8tion:JDA:5.0.0-beta.21") } ``` #### Maven ```xmlConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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.