mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-06 22:07:55 +00:00
feat(bot): separate banner privacy from description privacy
This commit is contained in:
parent
1b55d1c6a4
commit
cbc5a34dae
26 changed files with 141 additions and 22 deletions
|
|
@ -5,6 +5,7 @@ public enum SystemPrivacySubject
|
|||
Name,
|
||||
Avatar,
|
||||
Description,
|
||||
Banner,
|
||||
Pronouns,
|
||||
MemberList,
|
||||
GroupList,
|
||||
|
|
@ -22,6 +23,7 @@ public static class SystemPrivacyUtils
|
|||
SystemPrivacySubject.Name => system.NamePrivacy = level,
|
||||
SystemPrivacySubject.Avatar => system.AvatarPrivacy = level,
|
||||
SystemPrivacySubject.Description => system.DescriptionPrivacy = level,
|
||||
SystemPrivacySubject.Banner => system.BannerPrivacy = level,
|
||||
SystemPrivacySubject.Pronouns => system.PronounPrivacy = level,
|
||||
SystemPrivacySubject.Front => system.FrontPrivacy = level,
|
||||
SystemPrivacySubject.FrontHistory => system.FrontHistoryPrivacy = level,
|
||||
|
|
@ -63,6 +65,12 @@ public static class SystemPrivacyUtils
|
|||
case "intro":
|
||||
subject = SystemPrivacySubject.Description;
|
||||
break;
|
||||
case "banner":
|
||||
case "b":
|
||||
case "splash":
|
||||
case "cover":
|
||||
subject = SystemPrivacySubject.Banner;
|
||||
break;
|
||||
case "pronouns":
|
||||
case "pronoun":
|
||||
case "prns":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue