v5.0.0
$getCooldownTime
This function will allow you to get the resting cooldown time for an user/server or globalUser type of cooldown, for certain user in the requested command.

Fields

This function has 4 required fields
  1. 1.
    Time (Required)
  2. 2.
    Type of cooldown (Required)
  3. 3.
    Command Name (Required)
  4. 4.
    ID (Required)
  5. 5.
    Return ms (Optional)
Raw usage: $getCooldownTime[time;typeOfCooldown;command name;ID;return ms (yes/no) (optional)]

Options

  • Type Of Cooldown - The cooldown used in the command
  • Command Name - The command name of where the cooldown is
  • ID - The user's/server's id we're getting the cooldown for
  • Return ms - Whethor or not the function will return the time in ms

Types of Cooldown

Usage

Without optional field
1
bot.command({
2
name: "cooldown",
3
code: `
4
$description[
5
Daily command: $getCooldownTime[1d;globalUser;daily;$authorID]
6
]
7
`
8
});
Copied!
With optional field
1
bot.command({
2
name: "cooldown",
3
code: `
4
$description[
5
Daily command: $getCooldownTime[1d;globalUser;daily;$authorID;yes]
6
] `
7
});
Copied!
Last modified 1mo ago
Copy link
Edit on GitHub