/// <summary> /// Initialize SpotifyTrack with a callback that searches a LavaTrack (and returns it), for when it is needed /// </summary> /// <param name="spotifyInfo">Spotify information from the Spotify API</param> /// <param name="innerTrackCallback">Method reference to search for the LavaTrack</param> public SpotifyTrack(SpotifyTrackInfo spotifyInfo, Func <Task <ILavaTrack> > innerTrackCallback) { this.SpotifyInfo = spotifyInfo; this.InnerTrackCallback = innerTrackCallback; }
/// <summary> /// Initialize SpotifyTrack with an already searched LavaTrack /// </summary> /// <param name="spotifyInfo">Spotify information from the Spotify API</param> /// <param name="innerTrack">Searched LavaTrack</param> public SpotifyTrack(SpotifyTrackInfo spotifyInfo, ILavaTrack innerTrack) { this.SpotifyInfo = spotifyInfo; this.InnerTrack = innerTrack; }