Update to JDA 5.6.1, Add YouTube OAuth2 support, Transform sources, and expanded audio managers#1836
Open
ahson01 wants to merge 1 commit intojagrosh:masterfrom
Open
Update to JDA 5.6.1, Add YouTube OAuth2 support, Transform sources, and expanded audio managers#1836ahson01 wants to merge 1 commit intojagrosh:masterfrom
ahson01 wants to merge 1 commit intojagrosh:masterfrom
Conversation
Sartharon
reviewed
Oct 3, 2025
| .enableCache(CacheFlag.MEMBER_OVERRIDES, CacheFlag.VOICE_STATE) | ||
| .disableCache(CacheFlag.ACTIVITY, CacheFlag.CLIENT_STATUS, CacheFlag.EMOTE, CacheFlag.ONLINE_STATUS) | ||
| .enableCache(CacheFlag.VOICE_STATE) | ||
| .disableCache(CacheFlag.ACTIVITY, CacheFlag.EMOJI, CacheFlag.ONLINE_STATUS) |
There was a problem hiding this comment.
JDA 5 requires intents to be explicitly enabled
Thus you are missing, otherwise you will not be able to read any content or members
.enableIntents(GatewayIntent.MESSAGE_CONTENT, GatewayIntent.GUILD_MEMBERS)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR extends JMusicBot with optional YouTube OAuth2 login, a transformable source mechanism, and additional audio source managers. It also updates dependencies and documents the fork-specific changes.
Key Changes
youtubeoauth2inconfig.txt.youtubetoken.txt.transformssection inconfigto rewrite inputs into playable sources.TransformativeAudioSourceManagerloads transformed inputs using selectors and formatting.BotConfigloadsyoutubeoauth2andtransforms.Botwires aYoutubeOauth2TokenHandlerinto logback to intercept OAuth messages.reference.confdocuments new options and defaults.README.mdupdated with fork notice and OAuth instructions.Files Touched
src/main/java/com/jagrosh/jmusicbot/BotConfig.java: loadyoutubeoauth2andtransforms.src/main/java/com/jagrosh/jmusicbot/Bot.java: initializeYoutubeOauth2TokenHandler.src/main/resources/reference.conf: addyoutubeoauth2,transforms, and explanatory comments.src/main/java/com/jagrosh/jmusicbot/audio/PlayerManager.java: register transforms, YouTube OAuth2, and new source managers.src/main/java/com/jagrosh/jmusicbot/audio/TransformativeAudioSourceManager.java: new manager for input rewrites.src/main/java/com/jagrosh/jmusicbot/utils/YoutubeOauth2TokenHandler.java: logback TurboFilter to handle OAuth flow and token persistence.README.md: fork/OAuth notes.pom.xml: dependency updates and repositories.Configuration
config.txt:youtubeoauth2(boolean, defaultfalse)transforms(object, default{})Dependency Updates
5.6.12.2.4dev.lavalink.youtube:common:1.13.5com.dunctebot:sourcemanagers:1.9.0(excludes legacy YouTube artifacts)com.github.jagrosh:JLyrics:master-SNAPSHOTChecklist
README.md,reference.conf)