File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
common/src/main/java/dev/lavalink/youtube Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 3131import java .io .DataOutput ;
3232import java .io .IOException ;
3333import java .net .URI ;
34+ import java .util .Arrays ;
3435import java .util .List ;
3536import java .util .regex .Matcher ;
3637import java .util .regex .Pattern ;
@@ -169,6 +170,12 @@ public void setPlaylistPageCount(int count) {
169170 */
170171 public void useOauth2 (@ Nullable String refreshToken , boolean skipInitialization ) {
171172 oauth2Handler .setRefreshToken (refreshToken , skipInitialization );
173+
174+ if (Arrays .stream (clients ).noneMatch (Client ::supportsOAuth )) {
175+ log .warn ("OAuth has been enabled without registering any OAuth-enabled clients. " +
176+ "Please consult https://github.com/lavalink-devs/youtube-source?tab=readme-ov-file#available-clients for a list of " +
177+ "OAuth-enabled clients." );
178+ }
172179 }
173180
174181 @ Nullable
You can’t perform that action at this time.
0 commit comments