mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-06-03 16:18:53 -04:00
parent
2156c6cd0c
commit
65ab003ff5
1 changed files with 2 additions and 2 deletions
|
@ -11,8 +11,8 @@ public record EmbedField(
|
||||||
{
|
{
|
||||||
public static EmbedField Parse(JsonElement json)
|
public static EmbedField Parse(JsonElement json)
|
||||||
{
|
{
|
||||||
var name = json.GetProperty("name").GetNonWhiteSpaceString();
|
var name = json.GetProperty("name").GetNonNullString();
|
||||||
var value = json.GetProperty("value").GetNonWhiteSpaceString();
|
var value = json.GetProperty("value").GetNonNullString();
|
||||||
var isInline = json.GetPropertyOrNull("inline")?.GetBooleanOrNull() ?? false;
|
var isInline = json.GetPropertyOrNull("inline")?.GetBooleanOrNull() ?? false;
|
||||||
|
|
||||||
return new EmbedField(name, value, isInline);
|
return new EmbedField(name, value, isInline);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue