mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-06 05:47:53 +00:00
Add group privacy command/structures
This commit is contained in:
parent
47d5ad0004
commit
5e28e0aba1
6 changed files with 163 additions and 6 deletions
|
|
@ -27,5 +27,11 @@ namespace PluralKit.Core
|
|||
|
||||
public static int MessageCountFor(this PKMember member, LookupContext ctx) =>
|
||||
member.MetadataPrivacy.Get(ctx, member.MessageCount);
|
||||
|
||||
public static string DescriptionFor(this PKGroup group, LookupContext ctx) =>
|
||||
group.DescriptionPrivacy.Get(ctx, group.Description);
|
||||
|
||||
public static string IconFor(this PKGroup group, LookupContext ctx) =>
|
||||
group.IconPrivacy.Get(ctx, group.Icon);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue