Ratelimiter

Ratelimiter

new Ratelimiter()

Source:

Ratelimiter bucket

Members

interval :NodeJS.Timer

Source:

Bucket reset interval

Type:
  • NodeJS.Timer

lastUse :number

Source:

Last use (timestamp)

Type:
  • number

sentWarn :boolean

Source:

If the warning was sent

Type:
  • boolean

soft :boolean

Source:

If the bucket is soft ratelimited or not

Type:
  • boolean

uses :number

Source:

Uses

Type:
  • number

Methods

use() → {string}

Source:

Use the bucket

Returns:
Type
string