Commands
C# Methods for Core > Commands
CommandAddToAllUserCooldowns
public void CommandAddToAllUserCooldowns(string id, int seconds)
CommandAddToGlobalCooldown
public void CommandAddToGlobalCooldown(string id, int seconds)
CommandAddToUserCooldown
public void CommandAddToUserCooldown(string id, string userId, Platform platform, int seconds)
Deprecated
public void CommandAddToUserCooldown(string id, int userId, int seconds)
CommandGetCounter
Returns the total number of command uses, by ID
0.2.4
public int CommandGetCounter(string commandId)
CommandGetUserCounter
Returns the total number of times a user has executed the specified command
0.2.4
public CommandCounter CommandGetUserCounter(string userLogin, Platform platform, string commandId)
CommandGetUserCounterById
Returns the total number of times a user has executed the specified command, by ID
0.2.4
public CommandCounter CommandGetUserCounterById(string userId, Platform platform, string commandId)
CommandRemoveAllUserCooldowns
public void CommandRemoveAllUserCooldowns(string id)
CommandRemoveGlobalCooldown
public void CommandRemoveGlobalCooldown(string id)
CommandRemoveUserCooldown
public void CommandRemoveUserCooldown(string id, string userId, Platform platform)
Deprecated
public void CommandRemoveUserCooldown(string id, int userId)
CommandResetAllUserCooldowns
public void CommandResetAllUserCooldowns(string id)
CommandResetAllUserCounters
Resets all counters associated with the specified command using its ID
0.2.4
public void CommandResetAllUserCounters(string commandId)
CommandResetCounter
Resets the total counter for the given command, by ID
0.2.4
public void CommandResetCounter(string commandId)
CommandResetGlobalCooldown
public void CommandResetGlobalCooldown(string id)
CommandResetUserCooldown
public void CommandResetUserCooldown(string id, string userId, Platform platform)
Deprecated
public void CommandResetUserCooldown(string id, int userId)
CommandResetUserCounter
Resets the total counter for a specified user for the given command, by ID
0.2.4
public void CommandResetUserCounter(string commandId, string userId, Platform platform)
CommandResetUsersCounters
public void CommandResetUsersCounters(string userId, Platform platform, bool persisted)
CommandSetGlobalCooldownDuration
public void CommandSetGlobalCooldownDuration(string id, int seconds)
CommandSetUserCooldownDuration
public void CommandSetUserCooldownDuration(string id, int seconds)
DisableCommand
public void DisableCommand(string id)
EnableCommand
public void EnableCommand(string id)
GetCommands
Returns all commands associated with Streamer.bot instance
0.2.5
public List<CommandData> GetCommands()
Â