CommandResetUsersCounters

Resets the total counter for all users of a platform for the given command, by ID

public void CommandResetUsersCounters(string userId, Platform platform, bool persisted)
userId
string required
platform
Streamer.bot.Plugin.Interface.Enums.Platform required
persisted
bool required
void
using System;
public class CPHInline
{
    public bool Execute()
    {
        //Define string of commandId
        string commandId = "4fcc2d13-9bcf-4c18-9d91-821a15f4b6e5";

        //Define Platform only "twitch", "youtube", "kick"
        Enum.TryParse("twitch", out Platform platform);

        //Reset all persisted user counters
        CPH.CommandResetUsersCounters(commandId, platform, true); 
        return true;
    }
}