Table of Contents

Method GetRemainingCooldown

Namespace
DisCatSharp.Entities.Core
Assembly
DisCatSharp.dll

GetRemainingCooldown(TContextType)

Calculates the cooldown remaining for given context.

TimeSpan GetRemainingCooldown(TContextType ctx)

Parameters

ctx TContextType

Context for which to calculate the cooldown.

Returns

TimeSpan

Remaining cooldown, or zero if no cooldown is active