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

Fix suppressing embeds on messages with webhooks #2620

Merged

Conversation

freya022
Copy link
Contributor

Pull Request Etiquette

Changes

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

Closes Issue: NaN

Description

This used to delete the message instead of editing the flags

@MinnDevelopment MinnDevelopment merged commit ae90da3 into discord-jda:master Feb 26, 2024
1 check passed
@freya022 freya022 deleted the fix/webhook-suppress-embeds branch February 26, 2024 18:14
mergify bot referenced this pull request in SvenKirschbaum/musikbot-client Mar 17, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|---|---|
| debian | final | digest | `d02c76d` -> `ccb33c3` |  |  |  |  |
| maven | stage | digest | `163c984` -> `2b884f2` |  |  |  |  |
| rust | stage | digest | `a71cd88` -> `d36f9d8` |  |  |  |  |
| [net.dv8tion:JDA](https://togithub.com/DV8FromTheWorld/JDA) | compile | patch | `5.0.0-beta.20` -> `5.0.0-beta.21` | [![age](https://developer.mend.io/api/mc/badges/age/maven/net.dv8tion:JDA/5.0.0-beta.21?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.21?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.20/5.0.0-beta.21?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.20/5.0.0-beta.21?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

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

### [`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 [@&#8203;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 [@&#8203;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 [@&#8203;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 [@&#8203;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 [@&#8203;freya022](https://togithub.com/freya022) in [https://github.com/discord-jda/JDA/pull/2620](https://togithub.com/discord-jda/JDA/pull/2620)

**Full Changelog**: discord-jda/JDA@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
<dependency>
    <groupId>net.dv8tion</groupId>
    <artifactId>JDA</artifactId>
    <version>5.0.0-beta.21</version> 
</dependency>
```

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "on sunday" 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.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] 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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants