Skip to content
GitHub

CooldownLimit

interface in meocord/common Since 4.1.0

interface CooldownLimit

How many calls a cooldown allows, and in how long a window.

Members

uses

uses: number

Calls allowed within the window.

windowMs

windowMs: number

The window's length, in milliseconds: a whole number, at least 1, as @Cooldown gives it.