API reference
Method PlayDirectUrlAsync
- Namespace
- DisCatSharp.Lavalink
- Assembly
- DisCatSharp.Lavalink.dll
PlayDirectUrlAsync(string, CancellationToken)
Directly plays a song by url.
public Task<LavalinkGuildPlayer> PlayDirectUrlAsync(string url, CancellationToken cancellationToken = default)
Parameters
urlstringThe url to play.
cancellationTokenCancellationTokenThe cancellation token.
Returns
Exceptions
- NotSupportedException
Thrown when the
urlis a pure youtube playlist.