Table of Contents
API reference

Class LavalinkTrackLoadingResult

Namespace
DisCatSharp.Lavalink.Entities
Assembly
DisCatSharp.Lavalink.dll
public sealed class LavalinkTrackLoadingResult
Inheritance
LavalinkTrackLoadingResult
Inherited Members

Properties

LoadType

Gets the load result type.

Result

Gets the load result.

You need to convert the object to the corresponding type based on LoadType.

var track = (LavalinkTrack)LavalinkTrackLoadingResult.Result;
LoadType Convert to
Track LavalinkTrack
Playlist LavalinkPlaylist
Search List<T> of LavalinkTrack
Empty null
Error LavalinkException

Methods

GetResultAs<T>()

Gets the result as a specific type.