We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8da0444 commit 83fc16cCopy full SHA for 83fc16c
main/src/main/java/com/sedmelluq/discord/lavaplayer/player/AudioPlayerManager.java
@@ -40,6 +40,16 @@ public interface AudioPlayerManager {
40
*/
41
void registerSourceManager(AudioSourceManager sourceManager);
42
43
+ /**
44
+ * Same as {@link #registerSourceManager(AudioSourceManager)} but registers multiple in one call.
45
+ * @param sourceManagers The source managers to register, which will be used for subsequent loadItem calls
46
+ */
47
+ default void registerSourceManagers(AudioSourceManager... sourceManagers) {
48
+ for (AudioSourceManager sourceManager : sourceManagers) {
49
+ registerSourceManager(sourceManager);
50
+ }
51
52
+
53
/**
54
* Shortcut for accessing a source manager of a certain class.
55
*
0 commit comments