mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 14:57:54 +00:00
feat: rework group list into member list
This commit is contained in:
parent
0afe031284
commit
f3869dbcbe
21 changed files with 374 additions and 126 deletions
|
|
@ -9,9 +9,15 @@ public static class ModelUtils
|
|||
public static string NameFor(this PKMember member, Context ctx) =>
|
||||
member.NameFor(ctx.LookupContextFor(member.System));
|
||||
|
||||
public static string NameFor(this PKGroup group, Context ctx) =>
|
||||
group.NameFor(ctx.LookupContextFor(group.System));
|
||||
|
||||
public static string AvatarFor(this PKMember member, Context ctx) =>
|
||||
member.AvatarFor(ctx.LookupContextFor(member.System)).TryGetCleanCdnUrl();
|
||||
|
||||
public static string IconFor(this PKGroup group, Context ctx) =>
|
||||
group.IconFor(ctx.LookupContextFor(group.System)).TryGetCleanCdnUrl();
|
||||
|
||||
public static string DisplayName(this PKMember member) =>
|
||||
member.DisplayName ?? member.Name;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue