fix: get rid of top-level guild_id key in dispatch payloads

This commit is contained in:
spiral
2021-11-26 14:45:58 -05:00
parent a4a5f5c17a
commit d28e99ba43
7 changed files with 11 additions and 12 deletions

View File

@@ -39,10 +39,12 @@ namespace PluralKit.Core
return patch;
}
public JObject ToJson()
public JObject ToJson(ulong guild_id)
{
var o = new JObject();
o.Add("guild_id", guild_id.ToString());
if (DisplayName.IsPresent)
o.Add("display_name", DisplayName.Value);

View File

@@ -56,10 +56,12 @@ namespace PluralKit.Core
return patch;
}
public JObject ToJson(string memberRef)
public JObject ToJson(string memberRef, ulong guild_id)
{
var o = new JObject();
o.Add("guild_id", guild_id.ToString());
if (ProxyEnabled.IsPresent)
o.Add("proxying_enabled", ProxyEnabled.Value);