jaoafa / MyMaid4

👤 Our "Maid" is here.
https://git.io/MyMaid4Docs
Other
4 stars 5 forks source link

fix(deps): update dependency net.dv8tion:jda to v5.0.0-beta.11 #1052

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
net.dv8tion:JDA 5.0.0-beta.9 -> 5.0.0-beta.11 age adoption passing confidence

âš  Dependency Lookup Warnings âš 

Warnings were logged while processing this repo. Please check the logs for more information.


Release Notes

DV8FromTheWorld/JDA (net.dv8tion:JDA) ### [`v5.0.0-beta.11`](https://togithub.com/discord-jda/JDA/releases/tag/v5.0.0-beta.11): | Bug fixes and embed from json ### Overview This release fixes a few issues introduced by the username changes. It also introduces [`EmbedBuilder.fromData`](https://docs.jda.wiki/net/dv8tion/jda/api/EmbedBuilder.html#fromData\(net.dv8tion.jda.api.utils.data.DataObject\)) as a way to deserialize embeds from JSON. There are also some changes to our online presence. - The JDA repository has moved to the [discord-jda](https://togithub.com/discord-jda) GitHub organization - The javadocs moved away from the Jenkins CI host to GitHub pages and can be found at our wiki domain [docs.jda.wiki](https://docs.jda.wiki) - All commits on the master branch will from now on build and upload artifacts using the [Artifacts Workflow](https://togithub.com/discord-jda/JDA/actions/workflows/artifacts.yml). Those artifacts stay up for a total of 90 days and can be downloaded as a zip file. All releases will continue to provide artifacts for that specific version indefinitely. ##### Create Embeds From JSON ([#​2471](https://togithub.com/DV8FromTheWorld/JDA/issues/2471)) Using the new [`EmbedBuilder.fromData`](https://docs.jda.wiki/net/dv8tion/jda/api/EmbedBuilder.html#fromData\(net.dv8tion.jda.api.utils.data.DataObject\)) factory method, you can now create embed instances from JSON or ETF data. ```java MessageEmbed embed = new EmbedBuilder().setDescription("Hello, friend").build(); byte[] data = embed.toData().toJson(); // serialize to json data Files.write(path, json); // store the embed somewhere on disk DataObject json = DataObject.fromJson(Files.newInputStream(path)); // load the json data MessageEmbed reconstructed = EmbedBuilder.fromData(json).build(); // reconstruct the same embed using the builder ``` #### New Features - Support embed deserialization from JSON data by [@​MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2471](https://togithub.com/discord-jda/JDA/pull/2471) #### Bug Fixes - Update modulo for default avatars by id by [@​MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2475](https://togithub.com/discord-jda/JDA/pull/2475) - Fix handling of wrong length discriminators by [@​MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2478](https://togithub.com/discord-jda/JDA/pull/2478) - Fix external location value to be editable on started scheduled event by [@​Mitmocc](https://togithub.com/Mitmocc) in [https://github.com/discord-jda/JDA/pull/2477](https://togithub.com/discord-jda/JDA/pull/2477) **Full Changelog**: https://github.com/discord-jda/JDA/compare/v5.0.0-beta.10...v5.0.0-beta.11 ### Installation #### Gradle ```gradle repositories { mavenCentral() } dependencies { implementation("net.dv8tion:JDA:5.0.0-beta.11") } ``` #### Maven ```xml net.dv8tion JDA 5.0.0-beta.11 ``` ### [`v5.0.0-beta.10`](https://togithub.com/discord-jda/JDA/releases/tag/v5.0.0-beta.10) ### Overview With this release, we are taking the first steps to transition into the new username system for Discord by marking some methods as incubating or deprecated. This release also introduces support for AutoMod, both events and changing the AutoMod rules of a guild. ##### AutoMod Support ([#​2429](https://togithub.com/DV8FromTheWorld/JDA/issues/2429)) You can now modify the AutoMod rules of a guild using `AutoModRuleData` and [`Guild#createAutoModRule`](https://ci.dv8tion.net/job/JDA5/javadoc/net/dv8tion/jda/api/entities/Guild.html#createAutoModRule\(net.dv8tion.jda.api.entities.automod.build.AutoModRuleData\)). Support for member profile AutoMod has not been added yet, due to the API being very unstable still. **Example** ```java guild.createAutoModRule( AutoModRule.onMessage("No morbius memes", TriggerConfig.keywordFilter("*morb*")) .putResponses(AutoModResponse.blockMessage("This meme is unfunny.")) ).queue(); ``` ##### Username Changes ([#​2462](https://togithub.com/DV8FromTheWorld/JDA/issues/2462)) Discord is changing to globally unique usernames and removing discriminators, this is explained in their [blog post](https://dis.gd/usernames). We are taking the first steps to transition with this release. **Deprecated Features** - JDA#getUserByTag - Guild#getMemberByTag - User#getDiscriminator - User#getAsTag - SelfUpdateDiscriminatorEvent - UserUpdateDiscriminatorEvent - AccountManager#setName **Incubating Features** These are likely to be deprecated and removed in the future. - JDA#getUsersByName - Guild#getMembersByName **Other Changes** - In the future, `User#getDiscriminator` will return `"0000"` for users who have a globally unique username from the new system. - A new `User#getEffectiveName` has been introduced to get the "effective display name" of a user, meaning either the `User#getGlobalName` or `User#getName`. This also affects `Member#getEffectiveName`, which will now return based on precedence `guild nickname` > `global name` > `username`. - `User#getDefaultAvatarId` now depends on the user id instead of the discriminator (when they have the discriminator 0000) #### New Features - Add automod support by [@​MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/DV8FromTheWorld/JDA/pull/2429](https://togithub.com/DV8FromTheWorld/JDA/pull/2429) - Add ThreadChannel#retrieveStartMessage by [@​MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/DV8FromTheWorld/JDA/pull/2438](https://togithub.com/DV8FromTheWorld/JDA/pull/2438) #### Changes - Improve handling of global rate-limit by [@​MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/DV8FromTheWorld/JDA/pull/2465](https://togithub.com/DV8FromTheWorld/JDA/pull/2465) - Start migration to new username API by [@​MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/DV8FromTheWorld/JDA/pull/2462](https://togithub.com/DV8FromTheWorld/JDA/pull/2462) - Improve handling of method discovery in AnnotatedEventManager by [@​freya022](https://togithub.com/freya022) in [https://github.com/DV8FromTheWorld/JDA/pull/2454](https://togithub.com/DV8FromTheWorld/JDA/pull/2454) #### Bug Fixes - Fix slow shutdown during reconnects by [@​MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/DV8FromTheWorld/JDA/pull/2464](https://togithub.com/DV8FromTheWorld/JDA/pull/2464) - Properly escape quotes with leading spaces by [@​Almighty-Satan](https://togithub.com/Almighty-Satan) in [https://github.com/DV8FromTheWorld/JDA/pull/2363](https://togithub.com/DV8FromTheWorld/JDA/pull/2363) **Full Changelog**: https://github.com/DV8FromTheWorld/JDA/compare/v5.0.0-beta.9...v5.0.0-beta.10 ### Installation #### Gradle ```gradle repositories { mavenCentral() } dependencies { implementation("net.dv8tion:JDA:5.0.0-beta.10") } ``` #### Maven ```xml net.dv8tion JDA 5.0.0-beta.10 ```

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.



This PR has been generated by Mend Renovate. View repository job log here.

renovate[bot] commented 1 year ago

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

âš  Warning: custom changes will be lost.