From e48e39eeb10ff1d5b90824bafb1685171daaafdd Mon Sep 17 00:00:00 2001 From: spiral Date: Fri, 19 Nov 2021 11:13:21 -0500 Subject: [PATCH] fix(webhooks): add signing token to events that are missing it --- PluralKit.Core/Dispatch/DispatchService.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PluralKit.Core/Dispatch/DispatchService.cs b/PluralKit.Core/Dispatch/DispatchService.cs index 73ed288f..613d99b9 100644 --- a/PluralKit.Core/Dispatch/DispatchService.cs +++ b/PluralKit.Core/Dispatch/DispatchService.cs @@ -138,6 +138,7 @@ namespace PluralKit.Core var data = new UpdateDispatchData(); data.Event = DispatchEvent.CREATE_MESSAGE; + data.SigningToken = system.WebhookToken; data.SystemId = system.Uuid.ToString(); data.EventData = newMessage.ToDispatchJson(member.Uuid.ToString()); @@ -161,6 +162,7 @@ namespace PluralKit.Core var data = new UpdateDispatchData(); data.Event = DispatchEvent.UPDATE_SYSTEM_GUILD; + data.SigningToken = system.WebhookToken; data.SystemId = system.Uuid.ToString(); data.GuildId = guild_id; data.EventData = patch.ToJson(memberRef); @@ -179,6 +181,7 @@ namespace PluralKit.Core var data = new UpdateDispatchData(); data.Event = DispatchEvent.UPDATE_MEMBER_GUILD; + data.SigningToken = system.WebhookToken; data.SystemId = system.Uuid.ToString(); data.EntityId = member.Uuid.ToString(); data.GuildId = guild_id;