Skip to content

Commit 456bdee

Browse files
committed
2 parents 15f742d + 8ccf9b7 commit 456bdee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

twitchio/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1982,7 +1982,7 @@ async def post_warn_chat_user(
19821982
token_for: str | PartialUser,
19831983
) -> WarnChatUserResponse:
19841984
params = {"broadcaster_id": broadcaster_id, "moderator_id": moderator_id}
1985-
data = {"user_id": user_id, "reason": reason}
1985+
data = {"data": {"user_id": user_id, "reason": reason}}
19861986

19871987
route: Route = Route("POST", "moderation/warnings", params=params, json=data, token_for=token_for)
19881988
return await self.request_json(route)

0 commit comments

Comments
 (0)