feat: system pronouns (#429)

This commit is contained in:
Jake Fulmine
2022-03-23 19:20:16 +01:00
committed by GitHub
parent 062835e0c5
commit 7efe6f1f97
11 changed files with 99 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ namespace PluralKit.Core;
public enum SystemPrivacySubject
{
Description,
Pronouns,
MemberList,
GroupList,
Front,
@@ -17,6 +18,7 @@ public static class SystemPrivacyUtils
_ = subject switch
{
SystemPrivacySubject.Description => system.DescriptionPrivacy = level,
SystemPrivacySubject.Pronouns => system.PronounPrivacy = level,
SystemPrivacySubject.Front => system.FrontPrivacy = level,
SystemPrivacySubject.FrontHistory => system.FrontHistoryPrivacy = level,
SystemPrivacySubject.MemberList => system.MemberListPrivacy = level,
@@ -44,6 +46,10 @@ public static class SystemPrivacyUtils
case "info":
subject = SystemPrivacySubject.Description;
break;
case "pronouns":
case "prns":
subject = SystemPrivacySubject.Pronouns;
break;
case "members":
case "memberlist":
case "list":