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.8 #1042

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.6 -> 5.0.0-beta.8 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 ### [`v5.0.0-beta.8`](https://togithub.com/DV8FromTheWorld/JDA/releases/tag/v5.0.0-beta.8): | Hotfix NullPointerException [Compare Source](https://togithub.com/DV8FromTheWorld/JDA/compare/v5.0.0-beta.7...v5.0.0-beta.8) ### Overview This is a small hotfix release for an error introduced in beta 7. #### Features - Support custom timeout on tasks by [@​MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/DV8FromTheWorld/JDA/pull/2439](https://togithub.com/DV8FromTheWorld/JDA/pull/2439) #### Bug Fixes - Fix NPE in shardmanager by [@​MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/DV8FromTheWorld/JDA/pull/2442](https://togithub.com/DV8FromTheWorld/JDA/pull/2442) **Full Changelog**: https://github.com/DV8FromTheWorld/JDA/compare/v5.0.0-beta.7...v5.0.0-beta.8 ### Installation #### Gradle ```gradle repositories { mavenCentral() } dependencies { implementation("net.dv8tion:JDA:5.0.0-beta.8") } ``` #### Maven ```xml net.dv8tion JDA 5.0.0-beta.8 ``` ### [`v5.0.0-beta.7`](https://togithub.com/DV8FromTheWorld/JDA/releases/tag/v5.0.0-beta.7): | Customize Rate-Limiter [Compare Source](https://togithub.com/DV8FromTheWorld/JDA/compare/v5.0.0-beta.6...v5.0.0-beta.7) ### Overview You can now use `RestConfig` to customize parts of the REST handling in JDA. This allows you to create custom rate-limiter implementations and make use of rate-limit proxy services such as [http-proxy](https://togithub.com/twilight-rs/http-proxy). ##### Rate-Limiter Customization ([#​2307](https://togithub.com/DV8FromTheWorld/JDA/issues/2307)) Using [RestConfig](https://ci.dv8tion.net/job/JDA5/javadoc/net/dv8tion/jda/api/requests/RestConfig.html), you can change parts of the REST handling. This allows you to append to the User-Agent, add custom headers, or even completely replace the existing Rate-Limiter handling: ```java RestConfig config = new RestConfig(); config.setUserAgentSuffix("custom suffix"); // Changes user-agent to "DiscordBot(JDA, ...) custom suffix" config.setBaseUrl("https://proxy.example.com/api/v10"); // requests will now go through this endpoint, allowing custom rate-limits config.setRateLimiterFactory(...); // change the handling of rate-limits builder.setRestConfig(config); // then simply set it on your JDABuilder or DefaultShardManagerBuilder ``` This can also be useful to implement a different queue system for rate-limit handling. By default, JDA will always use the [SequentialRateLimiter](https://ci.dv8tion.net/job/JDA5/javadoc/net/dv8tion/jda/api/requests/SequentialRestRateLimiter.html), which handles requests to the same rate-limit bucket in sequence to avoid messages being unordered. A custom implementation could replace this to run requests in parallel. To implement a custom rate-limiter, use the existing [RestRateLimiter](https://ci.dv8tion.net/job/JDA5/javadoc/net/dv8tion/jda/api/requests/RestRateLimiter.html) interface and implement the required methods as documented. Your implementation will be provided with [Work](https://ci.dv8tion.net/job/JDA5/javadoc/net/dv8tion/jda/api/requests/RestRateLimiter.Work.html) instances to handle. ##### Member Flags ([#​2417](https://togithub.com/DV8FromTheWorld/JDA/issues/2417)) You can now access the flags on members and modify them. This allows to check if a member has rejoined the guild or passed onboarding. The rejoin flag is not entirely reliable, since Discord has only started tracking rejoins recently. Members who rejoined years ago will not have this flag set. With [`Member#modifyFlags`](https://ci.dv8tion.net/job/JDA5/javadoc/net/dv8tion/jda/api/entities/Member.html#modifyFlags\(java.util.Collection\)), you can change some of these flags. Only a subset of the existing flags are [modifiable](https://ci.dv8tion.net/job/JDA5/javadoc/net/dv8tion/jda/api/entities/Member.MemberFlag.html#isModifiable\(\)). ```java EnumSet flags = member.getFlags(); flags.add(MemberFlag.BYPASS_VERIFICATION); // Member bypasses verification level on guild member.modifyFlags(flags).queue(); ``` #### Features - Add rate-limiter customization by [@​MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/DV8FromTheWorld/JDA/pull/2307](https://togithub.com/DV8FromTheWorld/JDA/pull/2307) - Add support for member flags by [@​MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/DV8FromTheWorld/JDA/pull/2417](https://togithub.com/DV8FromTheWorld/JDA/pull/2417) #### Changes - Remove AccountType by [@​MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/DV8FromTheWorld/JDA/pull/2420](https://togithub.com/DV8FromTheWorld/JDA/pull/2420) - Handle new channel field on interactions by [@​MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/DV8FromTheWorld/JDA/pull/2436](https://togithub.com/DV8FromTheWorld/JDA/pull/2436) #### Bug Fixes - Fix channel manager not using right type by [@​MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/DV8FromTheWorld/JDA/pull/2428](https://togithub.com/DV8FromTheWorld/JDA/pull/2428) **Full Changelog**: https://github.com/DV8FromTheWorld/JDA/compare/v5.0.0-beta.6...v5.0.0-beta.7 ### Installation #### Gradle ```gradle repositories { mavenCentral() } dependencies { implementation("net.dv8tion:JDA:5.0.0-beta.7") } ``` #### Maven ```xml net.dv8tion JDA 5.0.0-beta.7 ```

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.