mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 23:07:54 +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 MemberPrivacySubject
|
|||
Visibility,
|
||||
Name,
|
||||
Description,
|
||||
Banner,
|
||||
Avatar,
|
||||
Birthday,
|
||||
Pronouns,
|
||||
|
|
@ -21,6 +22,7 @@ public static class MemberPrivacyUtils
|
|||
{
|
||||
MemberPrivacySubject.Name => member.NamePrivacy = level,
|
||||
MemberPrivacySubject.Description => member.DescriptionPrivacy = level,
|
||||
MemberPrivacySubject.Banner => member.BannerPrivacy = level,
|
||||
MemberPrivacySubject.Avatar => member.AvatarPrivacy = level,
|
||||
MemberPrivacySubject.Pronouns => member.PronounPrivacy = level,
|
||||
MemberPrivacySubject.Birthday => member.BirthdayPrivacy = level,
|
||||
|
|
@ -57,6 +59,12 @@ public static class MemberPrivacyUtils
|
|||
case "intro":
|
||||
subject = MemberPrivacySubject.Description;
|
||||
break;
|
||||
case "banner":
|
||||
case "b":
|
||||
case "splash":
|
||||
case "cover":
|
||||
subject = MemberPrivacySubject.Banner;
|
||||
break;
|
||||
case "avatar":
|
||||
case "pfp":
|
||||
case "pic":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue