Skip to content

Commit 11cf32e

Browse files
committed
Correct CustomReward.edit() parameter
Correct enabled to is_enabled
1 parent 33b5981 commit 11cf32e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Master
1616
- Made Chatter :attr:`~twitchio.Chatter.id` property public
1717
- :func:`~twitchio.Client.event_token_expired` will now be called correctly when response is ``401 Invalid OAuth token``
1818
- Fix reconnect loop when Twitch sends a RECONNECT via IRC websocket
19+
- Fix :func:`~twitchio.CustomReward.edit` so it now can enable the reward
1920

2021
- Other
2122
- [speed] extra

twitchio/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ async def update_reward(
421421
"prompt": prompt,
422422
"cost": cost,
423423
"background_color": background_color,
424-
"enabled": enabled,
424+
"is_enabled": enabled,
425425
"is_user_input_required": input_required,
426426
"is_max_per_stream_enabled": max_per_stream_enabled,
427427
"max_per_stream": max_per_stream,

0 commit comments

Comments
 (0)