TwitchLib / TwitchLib.EventSub.Webhooks

Provides an easy way to setup a Twitch EventSub Webhooks Server
6 stars 7 forks source link

Exception with HypeTrainBegin event #2

Closed NephChevsky closed 1 year ago

NephChevsky commented 1 year ago

It seems the Twitchlib.EventSub module doesn't work with the channel.hype_train.begin event

It crashes on the LastContribution object which expects an array of HypeTrainContribution But it's only a single element

image

[Error] WebApp.Services.EventSubService: Reason: Application_Error - Message: The JSON value could not be converted to TwitchLib.EventSub.Webhooks.Core.Models.HypeTrain.HypeTrainContribution[]. Path: $.event.last_contribution | LineNumber: 0 | BytePositionInLine: 738.

Syzuna commented 1 year ago

I will make a release with that fix soonish. if I am at it I might just as well add the new charity beta subscription type before doing a release

Syzuna commented 1 year ago

Version 1.3.0, that contains the fix for this, should be available in nuget shorty. https://www.nuget.org/packages/TwitchLib.EventSub.Webhooks/1.3.0