Add member color to card

This commit is contained in:
Ske 2019-07-15 22:06:08 +02:00
parent 66690423e8
commit 99919ea6ea

View File

@ -75,6 +75,7 @@ namespace PluralKit.Bot {
if (member.Pronouns != null) eb.AddField("Pronouns", member.Pronouns); if (member.Pronouns != null) eb.AddField("Pronouns", member.Pronouns);
if (messageCount > 0) eb.AddField("Message Count", messageCount); if (messageCount > 0) eb.AddField("Message Count", messageCount);
if (member.HasProxyTags) eb.AddField("Proxy Tags", $"{member.Prefix}text{member.Suffix}"); if (member.HasProxyTags) eb.AddField("Proxy Tags", $"{member.Prefix}text{member.Suffix}");
if (member.Color != null) eb.AddField("Color", $"#{member.Color}");
return eb.Build(); return eb.Build();
} }