Globals

C# Methods for Twitch > Globals

GetTwitchUsersVar<T>

Get a list of all Twitch users with a given variable, along with their values

public List<UserVariableValue<T>> GetTwitchUsersVar<T>(string varName, bool persisted = true)

GetTwitchUserVar<T>

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

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

GetTwitchUserVarById<T>

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

public T GetTwitchUserVarById<T>(string userId, string varName, bool persisted = true)

IncrementAllTwitchUsersVar

Increments the value of a specific user global variable for all Twitch users

0.2.4
public void IncrementAllTwitchUsersVar(string varName, object value, bool persisted = true)

IncrementOrCreateTwitchUsersVarById

Increments the value of a specific user global variable for a specified Twitch user, by ID. If the variable doesn't exist, it creates a new one

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

IncrementTwitchUsersVarById

Increments the value of a specific user global variable for a specified Twitch user, by ID

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

SetTwitchUsersVarById

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

SetTwitchUserVar

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

SetTwitchUserVarById

public void SetTwitchUserVarById(string userId, string varName, object value, bool persisted = true)

UnsetTwitchUser

public void UnsetTwitchUser(string userName, bool persisted = true)

UnsetTwitchUserById

public void UnsetTwitchUserById(string userId, bool persisted = true)

UnsetTwitchUserVar

public void UnsetTwitchUserVar(string userName, string varName, bool persisted = true)

UnsetTwitchUserVarById

public void UnsetTwitchUserVarById(string userId, string varName, bool persisted = true)