fix(webhooks): add signing token to events that are missing it

This commit is contained in:
spiral 2021-11-19 11:13:21 -05:00
parent e8beb245da
commit e48e39eeb1
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31

View File

@ -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;