pyTwitchAPI icon indicating copy to clipboard operation
pyTwitchAPI copied to clipboard

Update Custom Rewards Fix

Open gitagogaming opened this issue 3 years ago • 0 comments

When trying to update a reward, If you did not specify certain things(even if they are optional) then you would receive an exception. The problem resides in is_global_cooldown_enabled, is_max_per_user_per_stream_enabled, is_max_per_stream_enabled

My action: twitch.update_custom_reward(broadcaster_id=str(full_config.Broadcaster_ID), reward_id=str(is_located['id']), cost=int(r_cost))

Twitches Response:twitchAPI.types.TwitchAPIException: - both max_per_user_per_stream and is_max_per_user_per_stream_enabled are required when setting either one `

gitagogaming avatar Jul 23 '22 00:07 gitagogaming