mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 06:47:56 +00:00
feat: system pronouns (#429)
This commit is contained in:
parent
062835e0c5
commit
7efe6f1f97
11 changed files with 99 additions and 2 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue