ID is a string apparently

This commit is contained in:
barelyprofessional
2025-08-20 18:31:41 -05:00
parent 155c9c2d36
commit 78fcac212d

View File

@@ -119,7 +119,7 @@ public class TwitchGraphQl(string? proxy = null, CancellationToken cancellationT
returnData.IsLive = true;
returnData.Id = responseContent.GetProperty("data").GetProperty("user").GetProperty("stream").GetProperty("id")
.GetInt64();
.GetString();
returnData.ViewerCount = responseContent.GetProperty("data").GetProperty("user").GetProperty("stream").GetProperty("viewersCount")
.GetInt32();
return returnData;
@@ -146,5 +146,5 @@ public class TwitchGraphQlModel
/// <summary>
/// Stream ID returned by the GraphQL endpoint. null if none
/// </summary>
public long? Id { get; set; }
public string? Id { get; set; }
}