Fix: Wrong HTTP method for channel update

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-09-10 19:46:03 +02:00
parent 3e5d3d0532
commit c9e7d48477
Signed by: luzifer
GPG Key ID: 0066F03ED215AD7D

View File

@ -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",
)
}