feat(api): add member.autoproxy_enabled

This commit is contained in:
spiral 2022-12-15 00:49:55 +00:00
parent 99d71aec2c
commit 513c3e1a72
No known key found for this signature in database
GPG Key ID: 244A11E4B0BCF40E
2 changed files with 3 additions and 0 deletions

View File

@ -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 } });

View File

@ -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`