TwitchRedemptionCancel
Will refund the Twitch reward and removing it from the reward queue
Signature
public bool TwitchRedemptionCancel(string rewardId, string redemptionId)
Parameters
rewardId
string required
Id of your reward. Available by right-clicking your reward under Platforms > Twitch > Channel Point Rewards
redemptionId
string required
No description provided.
Return Type
bool
Example
using System;
public class CPHInline
{
public bool Execute()
{
//Get current rewardId
CPH.TryGetArg("rewardId",out string rewardId);
//Get redemption id
CPH.TryGetArg("redemptionId",out string redemptionId);
//Cancel Reward Redeem can get bool that indicates if successful
bool refundSuccess = CPH.TwitchRedemptionCancel(rewardId, redemptionId); return true;
}
}