Commands

C# Methods for Core > Commands

CommandAddToAllUserCooldowns

Will add time(seconds) to all current user cooldowns of a command, by ID

0.2.4
public void CommandAddToAllUserCooldowns(string id, int seconds)

CommandAddToGlobalCooldown

Will add time(seconds) to current global cooldown of a command, by ID

0.2.4
public void CommandAddToGlobalCooldown(string id, int seconds)

CommandAddToUserCooldown

Will add time(seconds) to the specified user's cooldown of a command, by ID

0.2.4
public void CommandAddToUserCooldown(string id, string userId, Platform platform, int seconds)
Deprecated
0.2.4
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

Remove all user cooldowns associated with the specified command, by ID

0.2.4
public void CommandRemoveAllUserCooldowns(string id)

CommandRemoveGlobalCooldown

Remove global cooldown associated with the specified command, by ID

0.2.4
public void CommandRemoveGlobalCooldown(string id)

CommandRemoveUserCooldown

Remove the specified user's cooldown of a command, by ID

0.2.4
public void CommandRemoveUserCooldown(string id, string userId, Platform platform)
Deprecated
0.2.4
public void CommandRemoveUserCooldown(string id, int userId)

CommandResetAllUserCooldowns

Reset all users cooldowns on all platforms associated with the specified command, by ID

0.2.4
public void CommandResetAllUserCooldowns(string id)

CommandResetAllUserCounters

Resets all user counters associated with the specified command, by 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

Resets global cooldown of command, by ID

0.2.4
public void CommandResetGlobalCooldown(string id)

CommandResetUserCooldown

Reset the specified user's cooldown of a command, by ID

0.2.4
public void CommandResetUserCooldown(string id, string userId, Platform platform)
Deprecated
0.2.4
public void CommandResetUserCooldown(string id, int userId)

CommandResetUserCounter

Resets the counter for a specified user for the given command, by ID

0.2.4
public void CommandResetUserCounter(string commandId, string userId, Platform platform)

CommandResetUsersCounters

Resets the total counter for all users of a platform for the given command, by ID

0.2.4
public void CommandResetUsersCounters(string userId, Platform platform, bool persisted)

CommandSetGlobalCooldownDuration

Set the global cooldown duration of a command, by ID

0.2.4
public void CommandSetGlobalCooldownDuration(string id, int seconds)

CommandSetUserCooldownDuration

Set the user cooldown duration of a command, by ID

0.2.4
public void CommandSetUserCooldownDuration(string id, int seconds)

DisableCommand

Disables a command, by ID

public void DisableCommand(string id)

EnableCommand

Enables a command, by ID

public void EnableCommand(string id)

GetCommands

Returns all commands associated with Streamer.bot instance

0.2.5
public List<CommandData> GetCommands()