Method GetRemainingCooldown
- Namespace
- DisCatSharp.CommandsNext.Attributes
- Assembly
- DisCatSharp.CommandsNext.dll
GetRemainingCooldown(CommandContext)
Calculates the cooldown remaining for given command context.
public TimeSpan GetRemainingCooldown(CommandContext ctx)
Parameters
ctx
CommandContextContext for which to calculate the cooldown.
Returns
- TimeSpan
Remaining cooldown, or zero if no cooldown is active.