File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/main/kotlin/dev/arbjerg/lavalink/client Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import reactor.util.retry.Retry
2929import java.io.Closeable
3030import java.io.IOException
3131import java.time.Duration
32+ import java.util.*
3233import java.util.concurrent.ConcurrentHashMap
3334import java.util.concurrent.TimeUnit
3435import java.util.function.Consumer
@@ -427,6 +428,11 @@ class LavalinkNode(
427428 */
428429 fun getCachedPlayer (guildId : Long ): LavalinkPlayer ? = playerCache[guildId]
429430
431+ /* *
432+ * @return an unmodifiable view of all cached players for this node.
433+ */
434+ fun getCachedPlayers (): Map <Long , LavalinkPlayer > = Collections .unmodifiableMap(playerCache)
435+
430436 internal fun transferOrphansToSelf () {
431437 lavalink.transferOrphansTo(this )
432438 }
You can’t perform that action at this time.
0 commit comments