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