jaoafa / jaoTone

🎼 Discord MusicBot for jMS Gamers Club
https://jaoafa.github.io/jaoTone/
2 stars 1 forks source link

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

Closed renovate[bot] closed 11 months ago

renovate[bot] commented 11 months ago

Mend Renovate

This PR contains the following updates:

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

Release Notes

DV8FromTheWorld/JDA (net.dv8tion:JDA) ### [`v5.0.0-beta.14`](https://togithub.com/discord-jda/JDA/releases/tag/v5.0.0-beta.14): | Media Channels, Custom Status, LRU Cache ### Overview This brings JDA up to date with newly released API features and fixes a few issues. ##### Support for Custom Status ([#​2521](https://togithub.com/DV8FromTheWorld/JDA/issues/2521)) Many years ago, the "Custom Status" feature has been released on Discord, but has since been limited to client users. With a change recently, bots have finally been granted access to set this custom status as well. This, however, is limited to only setting the text value and no emoji. You can set a custom status using [`Activity.customStatus(text)`](https://docs.jda.wiki/net/dv8tion/jda/api/entities/Activity.html#customStatus\(java.lang.String\)). ##### Media Channels ([#​2516](https://togithub.com/DV8FromTheWorld/JDA/issues/2516)) Discord is rolling out another new channel type. This time the type is a derivation of forum channels, specifically designed to share media such as images or videos. This release adds support for media channels. A few places now return the new abstraction [`IPostContainer`](https://docs.jda.wiki/net/dv8tion/jda/api/entities/channel/attribute/IPostContainer.html), where previously a [`ForumChannel`](https://docs.jda.wiki/net/dv8tion/jda/api/entities/channel/concrete/ForumChannel.html) was used. This abstraction is used to deduplicate and expand the API to handle both media and forum channels equally, as both of these types handle posts (threads with start messages). ##### LRU Member Cache ([#​2506](https://togithub.com/DV8FromTheWorld/JDA/issues/2506)) The member cache has become slightly more powerful by introducing the new [`LRUMemberCachePolicy`](https://docs.jda.wiki/net/dv8tion/jda/api/utils/cache/LRUMemberCachePolicy.html). A Least-Recently-Used (LRU) cache keeps members cached based on activity. **Example**: ```java MemberCachePolicy.VOICE // Keep in cache if currently in voice (skip LRU and ONLINE) .or(MemberCachePolicy.ONLINE) // Otherwise, only add to cache if online .and(MemberCachePolicy.lru(1000) // keep 1000 recently active members .unloadUnless(MemberCachePolicy.VOICE)) // only unload if they are not in voice ``` #### New Features - Add DiscordLocale#toLocale by [@​freya022](https://togithub.com/freya022) in [https://github.com/discord-jda/JDA/pull/2485](https://togithub.com/discord-jda/JDA/pull/2485) - Add custom status support for bots by [@​RedDaedalus](https://togithub.com/RedDaedalus) in [https://github.com/discord-jda/JDA/pull/2521](https://togithub.com/discord-jda/JDA/pull/2521) - Added support for custom statuses using Activity.of by [@​Jqnn](https://togithub.com/Jqnn) in [https://github.com/discord-jda/JDA/pull/2524](https://togithub.com/discord-jda/JDA/pull/2524) - Add Activity#withState by [@​MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2523](https://togithub.com/discord-jda/JDA/pull/2523) - Add LRUMemberCachePolicy by [@​MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2506](https://togithub.com/discord-jda/JDA/pull/2506) - Add initial support for media channels by [@​MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2516](https://togithub.com/discord-jda/JDA/pull/2516) - Add default_values support by [@​MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2542](https://togithub.com/discord-jda/JDA/pull/2542) #### Changes - Add position check to timeouts by [@​MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2540](https://togithub.com/discord-jda/JDA/pull/2540) - Allow override of headers applied by default by [@​zaroxh](https://togithub.com/zaroxh) in [https://github.com/discord-jda/JDA/pull/2529](https://togithub.com/discord-jda/JDA/pull/2529) #### Bug Fixes - fix symmetricity of CustomEmojiImpl/RichCustomEmojiImpl#equals by [@​danthe1st](https://togithub.com/danthe1st) in [https://github.com/discord-jda/JDA/pull/2519](https://togithub.com/discord-jda/JDA/pull/2519) - Allow slowmode & nsfw in Stage Channels by [@​kazuryyx](https://togithub.com/kazuryyx) in [https://github.com/discord-jda/JDA/pull/2538](https://togithub.com/discord-jda/JDA/pull/2538) - Improve handling of query parameters in image proxy by [@​MinnDevelopment](https://togithub.com/MinnDevelopment) in [https://github.com/discord-jda/JDA/pull/2551](https://togithub.com/discord-jda/JDA/pull/2551) **Full Changelog**: https://github.com/discord-jda/JDA/compare/v5.0.0-beta.13...v5.0.0-beta.14 ### Installation #### Gradle ```gradle repositories { mavenCentral() } dependencies { implementation("net.dv8tion:JDA:5.0.0-beta.14") } ``` #### Maven ```xml net.dv8tion JDA 5.0.0-beta.14 ```

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.

github-actions[bot] commented 11 months ago

Qodana Community for JVM

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked

View the detailed Qodana report To be able to view the detailed Qodana report, you can either: 1. Register at [Qodana Cloud](https://qodana.cloud/) and [configure the action](https://github.com/jetbrains/qodana-action#qodana-cloud) 2. Use [GitHub Code Scanning with Qodana](https://github.com/jetbrains/qodana-action#github-code-scanning) 3. Host [Qodana report at GitHub Pages](https://github.com/JetBrains/qodana-action/blob/3a8e25f5caad8d8b01c1435f1ef7b19fe8b039a0/README.md#github-pages) 4. Inspect and use `qodana.sarif.json` (see [the Qodana SARIF format](https://www.jetbrains.com/help/qodana/qodana-sarif-output.html#Report+structure) for details) To get `*.log` files or any other Qodana artifacts, run the action with `upload-result` option set to `true`, so that the action will upload the files as the job artifacts: ```yaml - name: 'Qodana Scan' uses: JetBrains/qodana-action@v2023.2.6 with: upload-result: true ```
Contact Qodana team Contact us at [qodana-support@jetbrains.com](mailto:qodana-support@jetbrains.com) - Or via our issue tracker: https://jb.gg/qodana-issue - Or share your feedback: https://jb.gg/qodana-discussions