mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
feat(api): add member.autoproxy_enabled
This commit is contained in:
parent
99d71aec2c
commit
513c3e1a72
2 changed files with 3 additions and 0 deletions
|
|
@ -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 } });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue