diff --git a/TwitchDownloaderCore/TwitchHelper.cs b/TwitchDownloaderCore/TwitchHelper.cs index f95e2637..5b9d48b4 100644 --- a/TwitchDownloaderCore/TwitchHelper.cs +++ b/TwitchDownloaderCore/TwitchHelper.cs @@ -477,8 +477,7 @@ public static async Task> GetEmotes(List comments, st subBadgeRequest.Headers.Add("Client-ID", "kimne78kx3ncx6brgo4mv6wki5h1ko"); using var subBadgeResponse = await httpClient.SendAsync(subBadgeRequest, HttpCompletionOption.ResponseHeadersRead, cancellationToken); subBadgeResponse.EnsureSuccessStatusCode(); - var test = await subBadgeResponse.Content.ReadFromJsonAsync(cancellationToken: cancellationToken); - var subBadges = (test).data.user.badges.GroupBy(x => x.name).ToDictionary(x => x.Key, x => x.ToList()); + var subBadges = (await subBadgeResponse.Content.ReadFromJsonAsync(cancellationToken: cancellationToken)).data.user.badges.GroupBy(x => x.name).ToDictionary(x => x.Key, x => x.ToList()); List badges = new List();