HttpLavalinkClient class
A Lavalink client that does not create a session on the server and can only make certain HTTP requests.
- Implementers
Constructors
- HttpLavalinkClient({required Uri base, required String password, String clientName = LavalinkClient.defaultClientName})
Properties
- base → Uri
-
The URI relative to which API routes will be resolved.
final
- clientName → String
-
The name of this client.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpClient → Client
-
The HTTP client used by this client.
final
- password → String
-
The password to use for authentication.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> - Close this client and all associated resources.
-
decodeTrack(
String encodedTrack) → Future< Track> - Decode a track from its encoded form.
-
decodeTracks(
List< String> encodedTracks) → Future<List< Track> > - Decode multiple tracks from their encoded form.
-
getInfo(
) → Future< LavalinkInfo> - Get information about the server.
-
getRoutePlannerStatus(
) → Future< RoutePlannerStatus> - Get the current status of the RoutePlanner extension.
-
getStats(
) → Future< LavalinkStats> - Get statistics from the server.
-
getVersion(
) → Future< String> - Get the current version of the server.
-
loadTrack(
String identifier) → Future< LoadResult> - Load one or more tracks from an identifier.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
unmarkAllFailedAddresses(
) → Future< void> - Unmark all failed addresses in the RoutePlanner extension.
-
unmarkFailedAddress(
String address) → Future< void> - Unmark a failed address in the RoutePlanner extension.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited