From 513c3e1a72aeb41241efb1817e196b9e19dfe615 Mon Sep 17 00:00:00 2001 From: spiral Date: Thu, 15 Dec 2022 00:49:55 +0000 Subject: [PATCH] feat(api): add member.autoproxy_enabled --- PluralKit.Core/Models/PKMember.cs | 2 ++ docs/content/api/models.md | 1 + 2 files changed, 3 insertions(+) diff --git a/PluralKit.Core/Models/PKMember.cs b/PluralKit.Core/Models/PKMember.cs index 10a09734..913704f8 100644 --- a/PluralKit.Core/Models/PKMember.cs +++ b/PluralKit.Core/Models/PKMember.cs @@ -130,6 +130,8 @@ public static class PKMemberExt o.Add("created", member.CreatedFor(ctx)?.FormatExport()); o.Add("keep_proxy", member.KeepProxy); + o.Add("autoproxy_enabled", ctx == LookupContext.ByOwner ? member.AllowAutoproxy : null); + var tagArray = new JArray(); foreach (var tag in member.ProxyTags) tagArray.Add(new JObject { { "prefix", tag.Prefix }, { "suffix", tag.Suffix } }); diff --git a/docs/content/api/models.md b/docs/content/api/models.md index a0a41e27..39f09acc 100644 --- a/docs/content/api/models.md +++ b/docs/content/api/models.md @@ -51,6 +51,7 @@ Every PluralKit entity has two IDs: a short (5-character) ID and a longer UUID. |created|?datetime|| |proxy_tags|array of [ProxyTag objects](#proxytag-object)| |keep_proxy|boolean|| +|autoproxy_enabled|?boolean|| |privacy|?member privacy object|| * Member privacy keys: `visibility`, `name_privacy`, `description_privacy`, `birthday_privacy`, `pronoun_privacy`, `avatar_privacy`, `metadata_privacy`