Skip to content

Commit

Permalink
Fix channel.user_id empty string resulting in startup failure
Browse files Browse the repository at this point in the history
  • Loading branch information
gehongyan committed Sep 7, 2024
1 parent 8fda5ab commit b667b97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Kook.Net.Rest/API/Common/Channel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ internal class Channel
public required string Name { get; set; }

[JsonPropertyName("user_id")]
[JsonConverter(typeof(NullableUInt64Converter))]
public ulong? CreatorId { get; set; }

[JsonPropertyName("guild_id")]
Expand Down

0 comments on commit b667b97

Please sign in to comment.