From 64e5e5e21ba4a650f1983d37069848fa5aa44b13 Mon Sep 17 00:00:00 2001 From: Lala Sabathil Date: Fri, 22 Dec 2023 02:45:15 +0100 Subject: [PATCH] fix: creator_id can be null apparently --- .../Entities/Guild/ScheduledEvent/DiscordScheduledEvent.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DisCatSharp/Entities/Guild/ScheduledEvent/DiscordScheduledEvent.cs b/DisCatSharp/Entities/Guild/ScheduledEvent/DiscordScheduledEvent.cs index 99d97d5ab..6b8c102a7 100644 --- a/DisCatSharp/Entities/Guild/ScheduledEvent/DiscordScheduledEvent.cs +++ b/DisCatSharp/Entities/Guild/ScheduledEvent/DiscordScheduledEvent.cs @@ -45,8 +45,8 @@ public Task Channel /// /// Gets the ID of the user that created the scheduled event. /// - [JsonProperty("creator_id")] - public ulong CreatorId { get; internal set; } + [JsonProperty("creator_id", NullValueHandling = NullValueHandling.Ignore)] // TODO: Check if this is a bug or not + public ulong? CreatorId { get; internal set; } /// /// Gets the user that created the scheduled event.