From f071485a82ac47631d411bff93fdb5c559730df7 Mon Sep 17 00:00:00 2001 From: spiral Date: Fri, 19 Nov 2021 11:23:23 -0500 Subject: [PATCH] fix(webhooks): always send event data, even if null --- PluralKit.Core/Dispatch/DispatchModels.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PluralKit.Core/Dispatch/DispatchModels.cs b/PluralKit.Core/Dispatch/DispatchModels.cs index 62ca8902..26cd5df3 100644 --- a/PluralKit.Core/Dispatch/DispatchModels.cs +++ b/PluralKit.Core/Dispatch/DispatchModels.cs @@ -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)); }