mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-06 05:47:53 +00:00
parent
084df88624
commit
68cd21fb2f
8 changed files with 46 additions and 9 deletions
|
|
@ -8,6 +8,7 @@ public enum MemberPrivacySubject
|
|||
Avatar,
|
||||
Birthday,
|
||||
Pronouns,
|
||||
Proxy,
|
||||
Metadata
|
||||
}
|
||||
|
||||
|
|
@ -24,6 +25,7 @@ public static class MemberPrivacyUtils
|
|||
MemberPrivacySubject.Pronouns => member.PronounPrivacy = level,
|
||||
MemberPrivacySubject.Birthday => member.BirthdayPrivacy = level,
|
||||
MemberPrivacySubject.Metadata => member.MetadataPrivacy = level,
|
||||
MemberPrivacySubject.Proxy => member.ProxyPrivacy = level,
|
||||
MemberPrivacySubject.Visibility => member.Visibility = level,
|
||||
_ => throw new ArgumentOutOfRangeException($"Unknown privacy subject {subject}")
|
||||
};
|
||||
|
|
@ -73,6 +75,12 @@ public static class MemberPrivacyUtils
|
|||
case "created":
|
||||
subject = MemberPrivacySubject.Metadata;
|
||||
break;
|
||||
case "proxy":
|
||||
case "proxies":
|
||||
case "tag":
|
||||
case "tags":
|
||||
subject = MemberPrivacySubject.Proxy;
|
||||
break;
|
||||
case "visibility":
|
||||
case "hidden":
|
||||
case "shown":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue