mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Escape Markdown on the system group list
This commit is contained in:
parent
a5aa4923b7
commit
ece03ff85e
1 changed files with 2 additions and 2 deletions
|
|
@ -270,9 +270,9 @@ namespace PluralKit.Bot
|
|||
eb.WithSimpleLineContent(page.Select(g =>
|
||||
{
|
||||
if (g.DisplayName != null)
|
||||
return $"[`{g.Hid}`] **{g.Name}** ({g.DisplayName}) ({"member".ToQuantity(g.MemberCount)})";
|
||||
return $"[`{g.Hid}`] **{g.Name.EscapeMarkdown()}** ({g.DisplayName.EscapeMarkdown()}) ({"member".ToQuantity(g.MemberCount)})";
|
||||
else
|
||||
return $"[`{g.Hid}`] **{g.Name}** ({"member".ToQuantity(g.MemberCount)})";
|
||||
return $"[`{g.Hid}`] **{g.Name.EscapeMarkdown()}** ({"member".ToQuantity(g.MemberCount)})";
|
||||
}));
|
||||
eb.WithFooter($"{groups.Count} total.");
|
||||
return Task.CompletedTask;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue