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

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

IncrementOrCreateTwitchUsersVarById

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

IncrementTwitchUsersVarById

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)