fix(deps): update dependency net.dv8tion:jda to v5.1.2 #10

Open
Rainnny wants to merge 1 commits from renovate/net.dv8tion-jda-5.x into master
Owner

This PR contains the following updates:

Package Type Update Change
net.dv8tion:JDA compile patch 5.1.0 -> 5.1.2

Release Notes

discord-jda/JDA (net.dv8tion:JDA)

v5.1.2: | Message Forwarding and Voice Messages

Compare Source

Overview

This release adds support for new message features.

Forwarding messages (#​2744)

You can now handle forwarded messages using the new message snapshots.

@​Override
public void onMessageReceived(MessageReceivedEvent event) {
    MessageReference messageReference = event.getMessage().getMessageReference();
    // Forwarded messages have a reference of type FORWARD
    if (messageReference != null && messageReference.getType() == MessageReference.MessageReferenceType.FORWARD) {
        // The content of the forwarded message is provided as a snapshot
        MessageSnapshot snapshot = event.getMessage().getMessageSnapshots().getFirst();
        System.out.println("Received forwarded message with content: " + snapshot.getContentRaw());
    }
}

A bot can also forward a message using Message#fowardTo. Note that a forwarded message cannot contain any additional content.

Voice messages (#​2738)

You can now send voice messages with JDA, by utilizing the new FileUpload#asVoiceMessage method on your audio attachments.

channel.sendFiles(
  FileUpload.fromData(audioFile)
    .asVoiceMessage(MediaType.parse("audio/ogg"), waveform, 10.5) // 10.5 seconds audio/ogg message
).queue();

To create a voice message, you must first determine the audio media type of your voice message and sample a waveform up to 256 bytes. Voice messages require a valid audio/* media type like audio/ogg.

The waveform is used to render the voice message shape in the preview. It must not be an accurate sampling of the actual audio.

New Features

Bug Fixes

Full Changelog: https://github.com/discord-jda/JDA/compare/v5.1.1...v5.1.2

Installation

Gradle

repositories {
    mavenCentral()
}
dependencies {
    implementation("net.dv8tion:JDA:5.1.2")
}

Maven

<dependency>
    <groupId>net.dv8tion</groupId>
    <artifactId>JDA</artifactId>
    <version>5.1.2</version> 
</dependency>

v5.1.1: | Small bugfix release

Compare Source

Overview

Small release to fix a few bugs. This fixes an issue that caused voice receive to no longer work as intended in 5.1.0.

Bug Fixes

Full Changelog: https://github.com/discord-jda/JDA/compare/v5.1.0...v5.1.1

Installation

Gradle

repositories {
    mavenCentral()
}
dependencies {
    implementation("net.dv8tion:JDA:5.1.1")
}

Maven

<dependency>
    <groupId>net.dv8tion</groupId>
    <artifactId>JDA</artifactId>
    <version>5.1.1</version> 
</dependency>

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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [net.dv8tion:JDA](https://github.com/discord-jda/JDA) | compile | patch | `5.1.0` -> `5.1.2` | --- ### Release Notes <details> <summary>discord-jda/JDA (net.dv8tion:JDA)</summary> ### [`v5.1.2`](https://github.com/discord-jda/JDA/releases/tag/v5.1.2): | Message Forwarding and Voice Messages [Compare Source](https://github.com/discord-jda/JDA/compare/v5.1.1...v5.1.2) ### Overview This release adds support for new message features. ##### Forwarding messages ([#&#8203;2744](https://github.com/discord-jda/JDA/issues/2744)) You can now handle forwarded messages using the new [message snapshots](https://docs.jda.wiki/net/dv8tion/jda/api/entities/Message.html#getMessageSnapshots\(\)). ```java @&#8203;Override public void onMessageReceived(MessageReceivedEvent event) { MessageReference messageReference = event.getMessage().getMessageReference(); // Forwarded messages have a reference of type FORWARD if (messageReference != null && messageReference.getType() == MessageReference.MessageReferenceType.FORWARD) { // The content of the forwarded message is provided as a snapshot MessageSnapshot snapshot = event.getMessage().getMessageSnapshots().getFirst(); System.out.println("Received forwarded message with content: " + snapshot.getContentRaw()); } } ``` A bot can also forward a message using [`Message#fowardTo`](https://docs.jda.wiki/net/dv8tion/jda/api/entities/Message.html#forwardTo\(net.dv8tion.jda.api.entities.channel.middleman.MessageChannel\)). Note that a forwarded message cannot contain any additional content. ##### Voice messages ([#&#8203;2738](https://github.com/discord-jda/JDA/issues/2738)) You can now send voice messages with JDA, by utilizing the new [`FileUpload#asVoiceMessage`](https://docs.jda.wiki/net/dv8tion/jda/api/utils/FileUpload.html#asVoiceMessage\(okhttp3.MediaType,byte%5B%5D,double\)) method on your audio attachments. ```java channel.sendFiles( FileUpload.fromData(audioFile) .asVoiceMessage(MediaType.parse("audio/ogg"), waveform, 10.5) // 10.5 seconds audio/ogg message ).queue(); ``` To create a voice message, you must first determine the audio media type of your voice message and sample a waveform up to 256 bytes. Voice messages require a valid `audio/*` media type like `audio/ogg`. The waveform is used to render the voice message shape in the preview. It must not be an accurate sampling of the actual audio. #### New Features - Add support for message forwarding by [@&#8203;MinnDevelopment](https://github.com/MinnDevelopment) in https://github.com/discord-jda/JDA/pull/2744 - Support sending voice messages by [@&#8203;MinnDevelopment](https://github.com/MinnDevelopment) in https://github.com/discord-jda/JDA/pull/2738 #### Bug Fixes - Fix ScheduledEventManagerImpl::setStatus by [@&#8203;raul1ro](https://github.com/raul1ro) in https://github.com/discord-jda/JDA/pull/2743 **Full Changelog**: https://github.com/discord-jda/JDA/compare/v5.1.1...v5.1.2 ### Installation #### Gradle ```gradle repositories { mavenCentral() } dependencies { implementation("net.dv8tion:JDA:5.1.2") } ``` #### Maven ```xml <dependency> <groupId>net.dv8tion</groupId> <artifactId>JDA</artifactId> <version>5.1.2</version> </dependency> ``` ### [`v5.1.1`](https://github.com/discord-jda/JDA/releases/tag/v5.1.1): | Small bugfix release [Compare Source](https://github.com/discord-jda/JDA/compare/v5.1.0...v5.1.1) ### Overview Small release to fix a few bugs. This fixes an issue that caused voice receive to no longer work as intended in 5.1.0. #### Bug Fixes - Remove extension from received audio packets by [@&#8203;davidffa](https://github.com/davidffa) in https://github.com/discord-jda/JDA/pull/2721 - Remove `@CheckReturnValue` from Once.Builder.subscribe by [@&#8203;freya022](https://github.com/freya022) in https://github.com/discord-jda/JDA/pull/2730 - Fix parsing error for AutoModResponse by [@&#8203;StasiumDev](https://github.com/StasiumDev) in https://github.com/discord-jda/JDA/pull/2728 **Full Changelog**: https://github.com/discord-jda/JDA/compare/v5.1.0...v5.1.1 ### Installation #### Gradle ```gradle repositories { mavenCentral() } dependencies { implementation("net.dv8tion:JDA:5.1.1") } ``` #### Maven ```xml <dependency> <groupId>net.dv8tion</groupId> <artifactId>JDA</artifactId> <version>5.1.1</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 [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC44OS4yIiwidXBkYXRlZEluVmVyIjoiMzguOTMuMCIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119-->
Rainnny added 1 commit 2024-09-21 05:04:05 -07:00
Rainnny changed title from fix(deps): update dependency net.dv8tion:jda to v5.1.1 to fix(deps): update dependency net.dv8tion:jda to v5.1.2 2024-10-05 03:03:47 -07:00
Rainnny force-pushed renovate/net.dv8tion-jda-5.x from c4814659e8 to f598c391e8 2024-10-05 03:03:53 -07:00 Compare
This pull request can be merged automatically.
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/net.dv8tion-jda-5.x:renovate/net.dv8tion-jda-5.x
git checkout renovate/net.dv8tion-jda-5.x
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Rainnny/Tether#10
No description provided.