IncrementTwitchUsersVarById

Increments the values of Twitch user variables for a list of user IDs. Will only increment if variable exists

Signature

public void IncrementTwitchUsersVarById(List<string> userIds, string varName, object value, bool persisted = true)

Parameters

userIds
List<string> required

No description provided.

varName
string required

Name of the user variable

value
object required

Value of how much the user variables should be increased by

persisted
bool
Default:
True
  • true - Persisted user variables will be affected
  • false - Non-persisted user variable will be affected

Return Type

void

Example

CPH.IncrementTwitchUsersVarById(userIds, varName, value);
CPH.IncrementTwitchUsersVarById(userIds, varName, value, persisted);