Table of Contents

Method GetTracksAsync

Namespace
DSharpPlus.Lavalink
Assembly
DSharpPlus.Lavalink.dll

Searches for specified terms.

public Task<LavalinkLoadResult> GetTracksAsync(string searchQuery, LavalinkSearchType type = LavalinkSearchType.Youtube)

Parameters

searchQuery string

What to search for.

type LavalinkSearchType

What platform will search for.

Returns

Task<LavalinkLoadResult>

A collection of tracks matching the criteria.

Loads tracks from specified URL.

public Task<LavalinkLoadResult> GetTracksAsync(Uri uri)

Parameters

uri Uri

URL to load tracks from.

Returns

Task<LavalinkLoadResult>

A collection of tracks from the URL.

Loads tracks from a local file.

public Task<LavalinkLoadResult> GetTracksAsync(FileInfo file)

Parameters

file FileInfo

File to load tracks from.

Returns

Task<LavalinkLoadResult>

A collection of tracks from the file.