mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 08:40:11 +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 =>
|
eb.WithSimpleLineContent(page.Select(g =>
|
||||||
{
|
{
|
||||||
if (g.DisplayName != null)
|
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
|
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.");
|
eb.WithFooter($"{groups.Count} total.");
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue