CommandResetUserCooldown

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

Signature

public void CommandResetUserCooldown(string id, int userId)

Parameters

id
string required

No description provided.

userId
int required

No description provided.

Return Type

void

Example

using System;
public class CPHInline
{
    public bool Execute()
    {
        //Define string of commandId
        string commandId = "4fcc2d13-9bcf-4c18-9d91-821a15f4b6e5";
        //Get current user id
        CPH.TryGetArg("userId",out string userId);
        //Get current platform of user
        CPH.TryGetArg("userType",out string userType);
        Enum.TryParse(userType, out Platform platform);
        
        //Reset user's cooldown
        CPH.CommandResetUserCooldown(commandId, userId, platform);         
        return true;
    }
}