mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-07 22:37:54 +00:00
Clean up member privacy command
This commit is contained in:
parent
dd2690c3f4
commit
761270f0c3
3 changed files with 172 additions and 110 deletions
|
|
@ -10,6 +10,9 @@
|
|||
{
|
||||
public static bool CanAccess(this PrivacyLevel level, LookupContext ctx) =>
|
||||
level == PrivacyLevel.Public || ctx == LookupContext.ByOwner;
|
||||
|
||||
public static string Name(this PrivacyLevel level) =>
|
||||
level == PrivacyLevel.Public ? "public" : "private";
|
||||
}
|
||||
|
||||
public enum LookupContext
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue