GetTwitchUserVar

Get the value of a user global variable for a specific Twitch user, by username

Signature

public T GetTwitchUserVar<T>(string userName, string varName, bool persisted = true)

Parameters

userName
string required

No description provided.

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.GetTwitchUserVar(userName, varName);
CPH.GetTwitchUserVar(userName, varName, persisted);