Skip to content

Commit

Permalink
fix: creator_id can be null apparently
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby committed Dec 22, 2023
1 parent a09fd1b commit 64e5e5e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public Task<DiscordChannel> Channel
/// <summary>
/// Gets the ID of the user that created the scheduled event.
/// </summary>
[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; }

/// <summary>
/// Gets the user that created the scheduled event.
Expand Down

0 comments on commit 64e5e5e

Please sign in to comment.