SetUserVar

Deprecated method to set a user variable
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.

Signature

public void SetUserVar(string userName, string varName, object value, bool persisted = true)

Parameters

userName
string required

No description provided.

varName
string required

The string name of the global variable

value
object required

No description provided.

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

void

Example

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