diff --git a/DisCatSharp.Docs/articles/modules/audio/lavalink_v4/commands.md b/DisCatSharp.Docs/articles/modules/audio/lavalink_v4/commands.md index c879c44aa9..d5000312a3 100644 --- a/DisCatSharp.Docs/articles/modules/audio/lavalink_v4/commands.md +++ b/DisCatSharp.Docs/articles/modules/audio/lavalink_v4/commands.md @@ -173,7 +173,7 @@ A shorthand method exists as `GetResultAs`: LavalinkTrack track = loadResult.LoadType switch { LavalinkLoadResultType.Track => loadResult.GetResultAs(), LavalinkLoadResultType.Playlist => loadResult.GetResultAs().Tracks.First(), - LavalinkLoadResultType.Search => loadResult.GetResultAs>().Tracks.First(), + LavalinkLoadResultType.Search => loadResult.GetResultAs>().First(), _ => throw new InvalidOperationException("Unexpected load result type.") }; ```