fix(webhooks): add signing token to events that are missing it
This commit is contained in:
parent
e8beb245da
commit
e48e39eeb1
@ -138,6 +138,7 @@ namespace PluralKit.Core
|
|||||||
|
|
||||||
var data = new UpdateDispatchData();
|
var data = new UpdateDispatchData();
|
||||||
data.Event = DispatchEvent.CREATE_MESSAGE;
|
data.Event = DispatchEvent.CREATE_MESSAGE;
|
||||||
|
data.SigningToken = system.WebhookToken;
|
||||||
data.SystemId = system.Uuid.ToString();
|
data.SystemId = system.Uuid.ToString();
|
||||||
data.EventData = newMessage.ToDispatchJson(member.Uuid.ToString());
|
data.EventData = newMessage.ToDispatchJson(member.Uuid.ToString());
|
||||||
|
|
||||||
@ -161,6 +162,7 @@ namespace PluralKit.Core
|
|||||||
|
|
||||||
var data = new UpdateDispatchData();
|
var data = new UpdateDispatchData();
|
||||||
data.Event = DispatchEvent.UPDATE_SYSTEM_GUILD;
|
data.Event = DispatchEvent.UPDATE_SYSTEM_GUILD;
|
||||||
|
data.SigningToken = system.WebhookToken;
|
||||||
data.SystemId = system.Uuid.ToString();
|
data.SystemId = system.Uuid.ToString();
|
||||||
data.GuildId = guild_id;
|
data.GuildId = guild_id;
|
||||||
data.EventData = patch.ToJson(memberRef);
|
data.EventData = patch.ToJson(memberRef);
|
||||||
@ -179,6 +181,7 @@ namespace PluralKit.Core
|
|||||||
|
|
||||||
var data = new UpdateDispatchData();
|
var data = new UpdateDispatchData();
|
||||||
data.Event = DispatchEvent.UPDATE_MEMBER_GUILD;
|
data.Event = DispatchEvent.UPDATE_MEMBER_GUILD;
|
||||||
|
data.SigningToken = system.WebhookToken;
|
||||||
data.SystemId = system.Uuid.ToString();
|
data.SystemId = system.Uuid.ToString();
|
||||||
data.EntityId = member.Uuid.ToString();
|
data.EntityId = member.Uuid.ToString();
|
||||||
data.GuildId = guild_id;
|
data.GuildId = guild_id;
|
||||||
|
Loading…
Reference in New Issue
Block a user