TwitchGetChannelPointsUsedByUserId

Get the amount of channel points used by a user. Tracks only the redeems that Streamer.bot has seen.

public long TwitchGetChannelPointsUsedByUserId(string userId)
userId
string required

Twitch Id of the user

long
using System;
public class CPHInline
{
    public bool Execute()
    {
        //Get user id of current user
        CPH.TryGetArg("userId",out string userId);
        //Get amount
        long amount = CPH.TwitchGetChannelPointsUsedByUserId(userId);         //Set as argument example
        CPH.SetArgument("amountSpend",amount);
        return true;
    }
}