Table of Contents

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 CommandContext

Context for which to calculate the cooldown.

Returns

TimeSpan

Remaining cooldown, or zero if no cooldown is active.