Skip to content

Commit b5a9e2c

Browse files
committed
Fix deserialization of nullable field "premium_type"
1 parent f641367 commit b5a9e2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DiscordRPC/User.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public enum Flag
140140
/// <summary>
141141
/// The premium type of the user.
142142
/// </summary>
143-
[JsonProperty("premium_type")]
143+
[JsonProperty("premium_type", NullValueHandling = NullValueHandling.Ignore)]
144144
public PremiumType Premium { get; private set; }
145145

146146
/// <summary>

0 commit comments

Comments
 (0)