Table of Contents

Method GetRemainingCooldown

Namespace
DisCatSharp.ApplicationCommands.Attributes
Assembly
DisCatSharp.ApplicationCommands.dll

GetRemainingCooldown(BaseContext)

Calculates the cooldown remaining for given command context.

public TimeSpan GetRemainingCooldown(BaseContext ctx)

Parameters

ctx BaseContext

Context for which to calculate the cooldown.

Returns

TimeSpan

Remaining cooldown, or zero if no cooldown is active.