nicklaw5 / helix

A Twitch Helix API client written in Go.
MIT License
240 stars 91 forks source link

channelinfo: fix delay field type #97

Closed cpanato closed 3 years ago

cpanato commented 3 years ago

first, thanks for making this project available!

I was trying to use the Getchannelinfo and when made a request it failed

 Failed to decode API response: json: cannot unmarshal number into Go struct field ChannelInformation.data.delay of type string

checking the Twitch API https://dev.twitch.tv/docs/api/reference#get-channel-information the delay field is an Int and not string

this PR fixes that

coveralls commented 3 years ago

Pull Request Test Coverage Report for Build 931020004


Totals Coverage Status
Change from base Build 907519524: 0.0%
Covered Lines: 998
Relevant Lines: 1037

💛 - Coveralls