mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-06 05:47:53 +00:00
fix(bot): format ids correctly in a few places
This commit is contained in:
parent
f6fceffc3f
commit
c3a30a59cd
7 changed files with 13 additions and 13 deletions
|
|
@ -255,7 +255,7 @@ public class EmbedService
|
|||
// More than 5 groups show in "compact" format without ID
|
||||
var content = groups.Count > 5
|
||||
? string.Join(", ", groups.Select(g => g.DisplayName ?? g.Name))
|
||||
: string.Join("\n", groups.Select(g => $"[`{g.Hid}`] **{g.DisplayName ?? g.Name}**"));
|
||||
: string.Join("\n", groups.Select(g => $"[`{g.DisplayHid(ccfg)}`] **{g.DisplayName ?? g.Name}**"));
|
||||
eb.Field(new Embed.Field($"Groups ({groups.Count})", content.Truncate(1000)));
|
||||
}
|
||||
|
||||
|
|
@ -324,7 +324,7 @@ public class EmbedService
|
|||
{
|
||||
var name = pctx == LookupContext.ByOwner
|
||||
? target.Reference(ctx)
|
||||
: target.Hid;
|
||||
: target.DisplayHid(ctx.Config);
|
||||
eb.Field(new Embed.Field($"Members ({memberCount})", $"(see `pk;group {name} list`)"));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue