Set Enabled State
Enable or disable a channel point reward.

Set Enabled State Dialog
Set Enabled State
Enable or disable a channel point reward.
Parameters
Reward
Select the reward.
- Type:
Selection
State
Enabled
| Enable the channel point rewardDisabled
| Disable the channel point rewardToggle
| Toggle the current status between enabled and disabled
Variables
This sub-action does not populate any variables.
C# Usage
Enable a Twitch Channel Point Reward, owned by Streamer.bot
public void EnableReward(string rewardId)
rewardIdstring required
using System;
public class CPHInline
{
public bool Execute()
{
//Define reward id you want to enable
string rewardId = "4fcc2d13-9bcf-4c18-9d91-821a15f4b6e5";
CPH.EnableReward(rewardId);
return true;
}
}
Disable a Twitch Channel Point Reward, owned by Streamer.bot
public void DisableReward(string rewardId)
rewardIdstring required
using System;
public class CPHInline
{
public bool Execute()
{
//Get current rewardId
CPH.TryGetArg("rewardId",out string rewardId);
//Disable Reward
CPH.DisableReward(rewardId);
return true;
}
}