mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
feat(bot): add system guild icon & guild name (#554)
This commit is contained in:
parent
d12cd481f6
commit
3045c5e307
22 changed files with 337 additions and 28 deletions
|
|
@ -12,6 +12,9 @@ public static class ModelUtils
|
|||
public static string NameFor(this PKGroup group, Context ctx) =>
|
||||
group.NameFor(ctx.LookupContextFor(group.System));
|
||||
|
||||
public static string NameFor(this PKSystem system, Context ctx) =>
|
||||
system.NameFor(ctx.LookupContextFor(system.Id));
|
||||
|
||||
public static string AvatarFor(this PKMember member, Context ctx) =>
|
||||
member.AvatarFor(ctx.LookupContextFor(member.System)).TryGetCleanCdnUrl();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue