import { type LeakyBucket } from "https://deno.land/x/discordeno@17.0.1/packages/embeds/deps.ts";
A Leaky Bucket.
Useful for rate limiting purposes.
This uses performance.now()
instead of Date.now()
for higher accuracy.
NOTE: This bucket is lazy, means it only updates when a related method is called.
Properties
Amount of tokens gained per interval.
If bigger than max
it will be pressed to max
.