From 23cbf4d2ab45a2fb096e242405ecbd47d8dc5995 Mon Sep 17 00:00:00 2001 From: Mohamed Yassine Ben Miled <94569708+mohamedyassine-benmiled@users.noreply.github.com> Date: Thu, 9 Oct 2025 17:24:46 +0100 Subject: [PATCH] Add JsonProperty attribute to Gifter property Fix read gifter on New Subscription event --- KickLib/Webhooks/Payloads/ChannelNewSubscriptionEvent.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/KickLib/Webhooks/Payloads/ChannelNewSubscriptionEvent.cs b/KickLib/Webhooks/Payloads/ChannelNewSubscriptionEvent.cs index ea60938..52231f4 100644 --- a/KickLib/Webhooks/Payloads/ChannelNewSubscriptionEvent.cs +++ b/KickLib/Webhooks/Payloads/ChannelNewSubscriptionEvent.cs @@ -10,6 +10,7 @@ public class ChannelNewSubscriptionEvent : WebhookEventBase /// /// The user who subscribed to the channel. /// + [JsonProperty(PropertyName = "subscriber")] public KickUser Gifter { get; set; } = new(); /// @@ -28,4 +29,4 @@ public class ChannelNewSubscriptionEvent : WebhookEventBase /// [JsonProperty(PropertyName = "expires_at")] public DateTimeOffset ExpiresAt { get; set; } -} \ No newline at end of file +}