author name will be counted as content in embeds. Embeds will now be valid if they only have an author specified

This commit is contained in:
Toastie (DCS Team) 2024-10-21 13:46:09 +13:00
parent c3ea830d7b
commit aca7ace527
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4

View file

@ -69,6 +69,7 @@ public abstract record SmartEmbedTextBase : SmartText
=> !string.IsNullOrWhiteSpace(Title) => !string.IsNullOrWhiteSpace(Title)
|| !string.IsNullOrWhiteSpace(Description) || !string.IsNullOrWhiteSpace(Description)
|| !string.IsNullOrWhiteSpace(Url) || !string.IsNullOrWhiteSpace(Url)
|| !string.IsNullOrWhiteSpace(Author?.Name)
|| !string.IsNullOrWhiteSpace(Thumbnail) || !string.IsNullOrWhiteSpace(Thumbnail)
|| !string.IsNullOrWhiteSpace(Image) || !string.IsNullOrWhiteSpace(Image)
|| (Footer is not null || (Footer is not null