From 78fcac212d6dce3162861d8255fc259bb62b1c05 Mon Sep 17 00:00:00 2001 From: barelyprofessional <150058423+barelyprofessional@users.noreply.github.com> Date: Wed, 20 Aug 2025 18:31:41 -0500 Subject: [PATCH] ID is a string apparently --- KfChatDotNetBot/Services/TwitchGraphQl.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/KfChatDotNetBot/Services/TwitchGraphQl.cs b/KfChatDotNetBot/Services/TwitchGraphQl.cs index 4da6c55..6cde329 100644 --- a/KfChatDotNetBot/Services/TwitchGraphQl.cs +++ b/KfChatDotNetBot/Services/TwitchGraphQl.cs @@ -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 /// /// Stream ID returned by the GraphQL endpoint. null if none /// - public long? Id { get; set; } + public string? Id { get; set; } } \ No newline at end of file