From c9e7d48477d9b37cd4b7b198adce0ff76be13729 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 10 Sep 2021 19:46:03 +0200 Subject: [PATCH] Fix: Wrong HTTP method for channel update Signed-off-by: Knut Ahlers --- twitch/twitch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitch/twitch.go b/twitch/twitch.go index 5bc9e1b..c469da9 100644 --- a/twitch/twitch.go +++ b/twitch/twitch.go @@ -337,7 +337,7 @@ func (c Client) ModifyChannelInformation(ctx context.Context, broadcasterName st } return errors.Wrap( - c.request(ctx, http.MethodPost, fmt.Sprintf("https://api.twitch.tv/helix/channels?broadcaster_id=%s", broadcaster), body, nil), + c.request(ctx, http.MethodPatch, fmt.Sprintf("https://api.twitch.tv/helix/channels?broadcaster_id=%s", broadcaster), body, nil), "executing request", ) }