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

Add support for profile automod #2580

Merged
merged 1 commit into from
Aug 2, 2024
Merged

Conversation

MinnDevelopment
Copy link
Member

Pull Request Etiquette

Changes

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

Closes Issue: NaN

Description

Adds support for creating profile automod rules.

Reference: discord/discord-api-docs#6040

@MinnDevelopment MinnDevelopment merged commit 4feac7d into master Aug 2, 2024
1 check passed
@MinnDevelopment MinnDevelopment deleted the feature/profile-automod branch August 2, 2024 18:38
mergify bot referenced this pull request in SvenKirschbaum/musikbot-client Aug 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 | `5f7d566` -> `2ccc7e3` |  |  |  |  |
| maven | stage | digest | `6bfb613` -> `7bec384` |  |  |  |  |
| rust | stage | minor | `1.79.0-bookworm` -> `1.80.1-bookworm` | [![age](https://developer.mend.io/api/mc/badges/age/docker/rust/1.80.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/docker/rust/1.80.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/docker/rust/1.79.0/1.80.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/docker/rust/1.79.0/1.80.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [net.dv8tion:JDA](https://github.com/discord-jda/JDA) | compile | patch | `5.0.1` -> `5.0.2` | [![age](https://developer.mend.io/api/mc/badges/age/maven/net.dv8tion:JDA/5.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/net.dv8tion:JDA/5.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/net.dv8tion:JDA/5.0.1/5.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/net.dv8tion:JDA/5.0.1/5.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [com.github.sealedtx:java-youtube-downloader](https://github.com/sealedtx/java-youtube-downloader) | compile | patch | `3.2.3` -> `3.2.4` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.github.sealedtx:java-youtube-downloader/3.2.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.github.sealedtx:java-youtube-downloader/3.2.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.github.sealedtx:java-youtube-downloader/3.2.3/3.2.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.github.sealedtx:java-youtube-downloader/3.2.3/3.2.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

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

### [`v5.0.2`](https://github.com/discord-jda/JDA/releases/tag/v5.0.2): | Single time event listener

### Overview

This release includes some bug fixes as well as a new event listener feature to add a one-time-use event listener.

##### Once Event Listener ([#&#8203;2683](https://github.com/discord-jda/JDA/issues/2683))

A common problem that developers run into, is "waiting" for a specific event in the context of some command. For instance, waiting for a user to add a reaction or reply with a message in response to some prompt.

This can now be achieved using the new [listenOnce](https://docs.jda.wiki/net/dv8tion/jda/api/JDA.html#listenOnce\(java.lang.Class\)) event listener:

```java
// listen for a message event
jda.listenOnce(MessageReceivedEvent.class)
    // filter for specific event
    .filter(event -> event.getChannel().equals(channel))
    .filter(event -> event.getAuthor().equals(user))
    // handle timeout
    .timeout(timeout, () -> hook.editOriginal("Timeout!").queue())
    // subscribe to first event that matches filters
    .subscribe(event -> {
        hook.editOriginal("You sent: " + event.getMessage().getContentRaw()).queue();
    });
```

#### New Features

-   Add `TeamMember.RoleType` by [@&#8203;freya022](https://github.com/freya022) in [https://github.com/discord-jda/JDA/pull/2703](https://github.com/discord-jda/JDA/pull/2703)
-   Add abstract `createCopy` method in `SelectMenu` by [@&#8203;Kaktushose](https://github.com/Kaktushose) in [https://github.com/discord-jda/JDA/pull/2684](https://github.com/discord-jda/JDA/pull/2684)
-   Add `JDA#listenOnce` by [@&#8203;freya022](https://github.com/freya022) in [https://github.com/discord-jda/JDA/pull/2683](https://github.com/discord-jda/JDA/pull/2683)
-   Add support for profile automod by [@&#8203;MinnDevelopment](https://github.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2580](https://github.com/discord-jda/JDA/pull/2580)

#### Changes

-   Expand list of retried http error codes by [@&#8203;MinnDevelopment](https://github.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2710](https://github.com/discord-jda/JDA/pull/2710)
-   Update to Jackson 2.17.2 by [@&#8203;freya022](https://github.com/freya022) in [https://github.com/discord-jda/JDA/pull/2695](https://github.com/discord-jda/JDA/pull/2695)

#### Bug Fixes

-   Fix deserialization of interaction components by [@&#8203;WitchBoo](https://github.com/WitchBoo) in [https://github.com/discord-jda/JDA/pull/2711](https://github.com/discord-jda/JDA/pull/2711)

**Full Changelog**: discord-jda/JDA@v5.0.1...v5.0.2

### Installation

#### Gradle

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

#### Maven

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

</details>

<details>
<summary>sealedtx/java-youtube-downloader (com.github.sealedtx:java-youtube-downloader)</summary>

### [`v3.2.4`](https://github.com/sealedtx/java-youtube-downloader/releases/tag/3.2.4)

[Compare Source](https://github.com/sealedtx/java-youtube-downloader/compare/3.2.3...3.2.4)

added missing itags

</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.

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

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](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.

1 participant