nicklaw5 / helix

A Twitch Helix API client written in Go.
MIT License
243 stars 88 forks source link

Corrected type of IsMature field on channe.update event #115

Closed zneix closed 3 years ago

zneix commented 3 years ago

I received this json unmarshal error while trying to parse a notification received from Twitch on the EventSub's channel.update event:

2021/08/27 19:20:41 [EventSub] Failed to unmarshal notification event: json: cannot unmarshal bool into Go struct field EventSubChannelUpdateEvent.is_mature of type string, data: {"broadcaster_user_id":"97916945","broadcaster_user_login":"heryin","broadcaster_user_name":"Heryin","title":"Testin again","language":"en","category_id":"509110","category_name":"Risk of Rain 2","is_mature":false}

Seems like returned is_mature is a boolean, according to the EventSub documentation.

coveralls commented 3 years ago

Pull Request Test Coverage Report for Build 1175148509


Totals Coverage Status
Change from base Build 1072491672: 0.0%
Covered Lines: 1064
Relevant Lines: 1101

💛 - Coveralls