mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-06 05:47:53 +00:00
Fix error showing group card with no description
This commit is contained in:
parent
9d5be07f0c
commit
0d04be6540
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue