fix: get rid of top-level guild_id
key in dispatch payloads
This commit is contained in:
@@ -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);
|
||||
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user