Fix error showing group card with no description

This commit is contained in:
Ske 2020-07-08 00:56:06 +02:00
parent 9d5be07f0c
commit 0d04be6540

View File

@ -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());
}