Pass our json serializer to ToObject calls (#1133)
Should fix issues in audit logs when deserializing overwrites and similar types which we use a custom contract resolver for.
This commit is contained in:
@@ -20,7 +20,7 @@ namespace Discord.API
|
||||
[JsonProperty("role_name")]
|
||||
public string OverwriteRoleName { get; set; }
|
||||
[JsonProperty("type")]
|
||||
public string OverwriteType { get; set; }
|
||||
public PermissionTarget OverwriteType { get; set; }
|
||||
[JsonProperty("id")]
|
||||
public ulong? OverwriteTargetId { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user