Fix error showing group card with no description
This commit is contained in:
parent
9d5be07f0c
commit
0d04be6540
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user