fix(webhooks): always send event data, even if null

This commit is contained in:
spiral 2021-11-19 11:23:23 -05:00
parent 1822788e4d
commit f071485a82
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31

View File

@ -58,8 +58,7 @@ namespace PluralKit.Core
o.Add("id", data.EntityId);
if (data.GuildId != null)
o.Add("guild_id", data.GuildId);
if (data.EventData != null)
o.Add("data", data.EventData);
o.Add("data", data.EventData);
return new StringContent(JsonConvert.SerializeObject(o));
}