Properly show tags containing markdown in system embed

This commit is contained in:
acw0 2020-05-15 07:32:28 -04:00
parent 792acad50a
commit f55c638f41

View File

@ -46,7 +46,7 @@ namespace PluralKit.Bot {
string.Join(", ", switchMembers.Select(m => m.Name))); string.Join(", ", switchMembers.Select(m => m.Name)));
} }
if (system.Tag != null) eb.AddField("Tag", system.Tag); if (system.Tag != null) eb.AddField("Tag", system.Tag.EscapeMarkdown());
eb.AddField("Linked accounts", string.Join(", ", users).Truncate(1000), true); eb.AddField("Linked accounts", string.Join(", ", users).Truncate(1000), true);
if (system.MemberListPrivacy.CanAccess(ctx)) if (system.MemberListPrivacy.CanAccess(ctx))