mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
feat(apiv2): actually add UUIDs to JSON models
This commit is contained in:
parent
9d47bfe0d8
commit
11620d94c8
3 changed files with 12 additions and 3 deletions
|
|
@ -112,10 +112,15 @@ namespace PluralKit.Core
|
|||
|
||||
var o = new JObject();
|
||||
o.Add("id", member.Hid);
|
||||
o.Add("name", member.NameFor(ctx));
|
||||
|
||||
if (systemStr != null && v == APIVersion.V2)
|
||||
o.Add("system", systemStr);
|
||||
if (v == APIVersion.V2)
|
||||
{
|
||||
o.Add("uuid", member.Uuid.ToString());
|
||||
if (systemStr != null)
|
||||
o.Add("system", systemStr);
|
||||
}
|
||||
|
||||
o.Add("name", member.NameFor(ctx));
|
||||
|
||||
// o.Add("color", member.ColorPrivacy.CanAccess(ctx) ? member.Color : null);
|
||||
o.Add("color", member.Color);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue