Table of Contents

Method GetRemainingCooldown

Namespace
DSharpPlus.CommandsNext.Attributes
Assembly
DSharpPlus.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.