Fixed .showembed, closes #410

This commit is contained in:
Kwoth
2023-05-03 02:23:10 +02:00
parent e8706d4006
commit 4dd31d6a0b
4 changed files with 21 additions and 7 deletions

View File

@@ -1,4 +1,6 @@
#nullable disable
using System.Text.Json.Serialization;
namespace NadekoBot;
public sealed record SmartEmbedTextArray : SmartText
@@ -6,6 +8,7 @@ public sealed record SmartEmbedTextArray : SmartText
public string Content { get; set; }
public SmartEmbedArrayElementText[] Embeds { get; set; }
[JsonIgnore]
public bool IsValid
=> Embeds?.All(x => x.IsValid) ?? false;