From 0d04be6540e6bcfa3db6f81822ca9e1466a9b1b3 Mon Sep 17 00:00:00 2001 From: Ske Date: Wed, 8 Jul 2020 00:56:06 +0200 Subject: [PATCH] Fix error showing group card with no description --- PluralKit.Bot/Commands/Groups.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PluralKit.Bot/Commands/Groups.cs b/PluralKit.Bot/Commands/Groups.cs index 2faec364..9c3e75a4 100644 --- a/PluralKit.Bot/Commands/Groups.cs +++ b/PluralKit.Bot/Commands/Groups.cs @@ -140,9 +140,11 @@ namespace PluralKit.Bot var eb = new DiscordEmbedBuilder() .WithAuthor(nameField) - .AddField("Description", target.Description) .WithFooter($"System ID: {system.Hid} | Group ID: {target.Hid} | Created on {target.Created.FormatZoned(system)}"); + if (target.Description != null) + eb.AddField("Description", target.Description); + await ctx.Reply(embed: eb.Build()); }