Closed tarumes closed 8 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:[]}}
Think i've found the issues :D
https://github.com/nicklaw5/helix/pull/209
Fixed in https://github.com/nicklaw5/helix/releases/tag/v2.25.3