nicklaw5 / helix

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

AddBlockedTerm() does not use provided data #208

Closed tarumes closed 8 months ago

tarumes commented 9 months ago
r, err := api.AddBlockedTerm(&helix.AddBlockedTermParams{
    BroadcasterID: self.Data.UserID,
    ModeratorID:   self.Data.UserID,
    Text:          "stream-rise",
})
if err != nil {
    panic(err)
}
log.Printf("%+v\n", r)
&{ResponseCommon:{StatusCode:400 Header:map[Content-Length:[92] Content-Type:[application/json; charset=utf-8] Date:[Sat, 30 Dec 2023 13:32:14 GMT] Strict-Transport-Security:[max-age=300] Timing-Allow-Origin:[https://www.twitch.tv] Vary:[Accept-Encoding, Origin] X-Cache:[MISS, MISS] X-Cache-Hits:[0, 0] X-Served-By:[cache-bfi-kbfi7400075-BFI, cache-mxp6937-MXP] X-Timer:[S1703943134.032044,VS0,VS0,VE164]] Error:Bad Request ErrorStatus:400 ErrorMessage:Missing required parameter "moderator_id"} Data:{Terms:[]}}
jackmcguire1 commented 9 months ago

Think i've found the issues :D

https://github.com/nicklaw5/helix/pull/209

nicklaw5 commented 8 months ago

Fixed in https://github.com/nicklaw5/helix/releases/tag/v2.25.3