diff --git a/PluralKit.Core/Models/PKGroup.cs b/PluralKit.Core/Models/PKGroup.cs index e34b1585..989a64eb 100644 --- a/PluralKit.Core/Models/PKGroup.cs +++ b/PluralKit.Core/Models/PKGroup.cs @@ -66,6 +66,7 @@ namespace PluralKit.Core var o = new JObject(); o.Add("id", group.Hid); + o.Add("uuid", group.Uuid.ToString()); o.Add("name", group.Name); if (systemStr != null) diff --git a/PluralKit.Core/Models/PKMember.cs b/PluralKit.Core/Models/PKMember.cs index 26c41fc7..0ed739cb 100644 --- a/PluralKit.Core/Models/PKMember.cs +++ b/PluralKit.Core/Models/PKMember.cs @@ -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); diff --git a/PluralKit.Core/Models/PKSystem.cs b/PluralKit.Core/Models/PKSystem.cs index 3e2f2b38..4d770783 100644 --- a/PluralKit.Core/Models/PKSystem.cs +++ b/PluralKit.Core/Models/PKSystem.cs @@ -70,6 +70,9 @@ namespace PluralKit.Core { var o = new JObject(); o.Add("id", system.Hid); + if (v == APIVersion.V2) + o.Add("uuid", system.Uuid.ToString()); + o.Add("name", system.Name); o.Add("description", system.DescriptionFor(ctx)); o.Add("tag", system.Tag);