Method GetTracksAsync
- Namespace
- DSharpPlus.Lavalink
- Assembly
- DSharpPlus.Lavalink.dll
GetTracksAsync(string, LavalinkSearchType)
Searches for specified terms.
public Task<LavalinkLoadResult> GetTracksAsync(string searchQuery, LavalinkSearchType type = LavalinkSearchType.Youtube)
Parameters
searchQuery
stringWhat to search for.
type
LavalinkSearchTypeWhat platform will search for.
Returns
- Task<LavalinkLoadResult>
A collection of tracks matching the criteria.
GetTracksAsync(Uri)
Loads tracks from specified URL.
public Task<LavalinkLoadResult> GetTracksAsync(Uri uri)
Parameters
uri
UriURL to load tracks from.
Returns
- Task<LavalinkLoadResult>
A collection of tracks from the URL.
GetTracksAsync(FileInfo)
Loads tracks from a local file.
public Task<LavalinkLoadResult> GetTracksAsync(FileInfo file)
Parameters
file
FileInfoFile to load tracks from.
Returns
- Task<LavalinkLoadResult>
A collection of tracks from the file.