Package dev.arbjerg.lavalink.internal
Class LavalinkRestClient
-
- All Implemented Interfaces:
public final class LavalinkRestClient
-
-
Field Summary
Fields Modifier and Type Field Description private final LavalinkNode
node
-
Constructor Summary
Constructors Constructor Description LavalinkRestClient(LavalinkNode node)
-
Method Summary
Modifier and Type Method Description final LavalinkNode
getNode()
final Mono<Players>
getPlayers()
final Mono<Player>
getPlayer(Long guildId)
final Mono<Player>
updatePlayer(PlayerUpdate player, Long guildId, Boolean noReplace)
final Mono<Unit>
destroyPlayer(Long guildId)
final Mono<LoadResult>
loadItem(String identifier)
final Mono<Track>
decodeTrack(String encoded)
final Mono<Tracks>
decodeTracks(List<String> encoded)
final Mono<Info>
getNodeInfo()
final Mono<Session>
patchSession(Session session)
-
-
Constructor Detail
-
LavalinkRestClient
LavalinkRestClient(LavalinkNode node)
-
-
Method Detail
-
getNode
final LavalinkNode getNode()
-
getPlayers
final Mono<Players> getPlayers()
-
updatePlayer
final Mono<Player> updatePlayer(PlayerUpdate player, Long guildId, Boolean noReplace)
-
destroyPlayer
final Mono<Unit> destroyPlayer(Long guildId)
-
decodeTrack
final Mono<Track> decodeTrack(String encoded)
-
decodeTracks
final Mono<Tracks> decodeTracks(List<String> encoded)
-
getNodeInfo
final Mono<Info> getNodeInfo()
-
patchSession
final Mono<Session> patchSession(Session session)
-
-
-
-