TwitchResetUserRewardCounters

Reset all user reward counters for the specified user, by id

Signature

public void TwitchResetUserRewardCounters(string userId, bool persisted)

Parameters

userId
string required

No description provided.

persisted
bool required

No description provided.

Return Type

void

Example

using System;
public class CPHInline
{
    public bool Execute()
    {
        //Get user id of current user id
        CPH.TryGetArg("userId",out string userId);

        //Reset persisted user reward counter
        CPH.TwitchResetUserRewardCounters(userId, true);         return true;
    }
}