GetTwitchUserVarById
Get the value of a user global variable for a specific Twitch user, by ID
Signature
public T GetTwitchUserVarById<T>(string userId, string varName, bool persisted = true)
Parameters
userId
string required
The unique ID for this user
varName
string required
The string name of the global variable
persisted
bool
Default:
True
To get, set, or unset persisted global variables, set to true or leave empty.
To get, set, or unset temporary/non-persisted global variables, set to false.
Return Type
T
Example
CPH.GetTwitchUserVarById(userId, varName);
CPH.GetTwitchUserVarById(userId, varName, persisted);