mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-07 14:27:54 +00:00
feat(bot): add system guild icon & guild name (#554)
This commit is contained in:
parent
d12cd481f6
commit
3045c5e307
22 changed files with 337 additions and 28 deletions
|
|
@ -2,6 +2,8 @@ namespace PluralKit.Core;
|
|||
|
||||
public enum SystemPrivacySubject
|
||||
{
|
||||
Name,
|
||||
Avatar,
|
||||
Description,
|
||||
Pronouns,
|
||||
MemberList,
|
||||
|
|
@ -17,6 +19,8 @@ public static class SystemPrivacyUtils
|
|||
// what do you mean switch expressions can't be statements >.>
|
||||
_ = subject switch
|
||||
{
|
||||
SystemPrivacySubject.Name => system.NamePrivacy = level,
|
||||
SystemPrivacySubject.Avatar => system.AvatarPrivacy = level,
|
||||
SystemPrivacySubject.Description => system.DescriptionPrivacy = level,
|
||||
SystemPrivacySubject.Pronouns => system.PronounPrivacy = level,
|
||||
SystemPrivacySubject.Front => system.FrontPrivacy = level,
|
||||
|
|
@ -40,6 +44,15 @@ public static class SystemPrivacyUtils
|
|||
{
|
||||
switch (input.ToLowerInvariant())
|
||||
{
|
||||
case "name":
|
||||
subject = SystemPrivacySubject.Name;
|
||||
break;
|
||||
case "avatar":
|
||||
case "pfp":
|
||||
case "pic":
|
||||
case "icon":
|
||||
subject = SystemPrivacySubject.Avatar;
|
||||
break;
|
||||
case "description":
|
||||
case "desc":
|
||||
case "text":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue