Class LavalinkUtilities
Various utilities for Lavalink.
Inheritance
System.Object
LavalinkUtilities
Namespace: DSharpPlus.Lavalink
Assembly: cs.temp.dll.dll
Syntax
public static class LavalinkUtilities
Methods
DecodeTrack(String)
Decodes a Lavalink track string.
Declaration
public static LavalinkTrack DecodeTrack(string track)
Parameters
Type | Name | Description |
---|---|---|
System.String | track | Track string to decode. |
Returns
Type | Description |
---|---|
LavalinkTrack | Decoded Lavalink track. |
MayStartNext(TrackEndReason)
Indicates whether a new track should be started after reciving this TrackEndReason. If this is false, either this event is already triggered because another track started (REPLACED) or because the player is stopped (STOPPED, CLEANUP).
Declaration
public static bool MayStartNext(this TrackEndReason reason)
Parameters
Type | Name | Description |
---|---|---|
TrackEndReason | reason |
Returns
Type | Description |
---|---|
System.Boolean |