From 21ec6ce0226fdb938a0c9668600d10326418604b Mon Sep 17 00:00:00 2001 From: Iris System Date: Mon, 8 Sep 2025 13:30:31 +1200 Subject: [PATCH] fix(bot): properly check description presence in CV2 cards --- PluralKit.Bot/Services/EmbedService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PluralKit.Bot/Services/EmbedService.cs b/PluralKit.Bot/Services/EmbedService.cs index e49e56e1..7ed006e3 100644 --- a/PluralKit.Bot/Services/EmbedService.cs +++ b/PluralKit.Bot/Services/EmbedService.cs @@ -119,7 +119,7 @@ public class EmbedService } List descComponents = []; - if (system.DescriptionFor(ctx) is { } desc) + if (system.DescriptionFor(ctx) is { } desc && !string.IsNullOrWhiteSpace(desc)) { descComponents.Add(new() { @@ -405,7 +405,7 @@ public class EmbedService } List descComponents = []; - if (member.DescriptionFor(ctx) is { } desc) + if (member.DescriptionFor(ctx) is { } desc && !string.IsNullOrWhiteSpace(desc)) { descComponents.Add(new() { @@ -595,7 +595,7 @@ public class EmbedService } List descComponents = []; - if (target.DescriptionFor(pctx) is { } desc) + if (target.DescriptionFor(pctx) is { } desc && !string.IsNullOrWhiteSpace(desc)) { descComponents.Add(new() {