Skip to content
GitHub

InspectedCooldown

interface in meocord/testing Since 4.1.0

interface InspectedCooldown

One @Cooldown on a handler, with its defaults filled in, as inspectHandler reports it.

Members

seconds

readonly seconds: number

The window, in seconds.

uses

readonly uses: number

How many calls the window allows.

per

readonly per: CooldownScope

Whom the calls are counted for: 'user', 'channel', 'guild' or 'global'.

bypass

readonly bypass: boolean

Whether it exempts some callers.

by

readonly by: boolean

Whether it counts calls apart by a value of the call.