SetUserVar

Deprecated method to set a user variable

Deprecated
This method is deprecated as of Streamer.bot v0.2.0
Please use the Twitch and YouTube methods to set user variables specific to those platforms.
public void SetUserVar(string userName, string varName, object value, bool persisted = true)
userName
string required
varName
string required

The string name of the global variable

value
object required
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.

void
CPH.SetUserVar(userName, varName, value);
CPH.SetUserVar(userName, varName, value, persisted);