fix: serialize guild_id as string in dispatch json

This commit is contained in:
spiral 2021-11-26 12:45:15 -05:00
parent e8d9106543
commit 28a199e507
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31

View File

@ -56,7 +56,7 @@ namespace PluralKit.Core
o.Add("signing_token", data.SigningToken); o.Add("signing_token", data.SigningToken);
o.Add("system_id", data.SystemId); o.Add("system_id", data.SystemId);
o.Add("id", data.EntityId); o.Add("id", data.EntityId);
o.Add("guild_id", data.GuildId); o.Add("guild_id", data.GuildId.ToString());
o.Add("data", data.EventData); o.Add("data", data.EventData);
return new StringContent(JsonConvert.SerializeObject(o)); return new StringContent(JsonConvert.SerializeObject(o));