This is an interval to constantly check Buckets which should be reset or unreferenced from the RateLimiter to be swept by the garbage collector. This 1 timeout is more performant as compared to potentially many more ticking timers to reset individual bucket remaining values.
YOU SHOULD NEVER OVERRIDE THIS UNLESS YOU KNOW WHAT YOU'RE DOING. REQUESTS MAY POSSIBLY NEVER EXECUTE WITHOUT THIS AND/OR MEMORY MAY SLOWLY CLIMB OVER TIME.
Queue a rest call to be executed
function to call once the ratelimit is ready
Endpoint of the request
Http method used by the request
Returns a key for saving ratelimits for routes (Taken from https://github.com/abalabahaha/eris/blob/master/lib/rest/RequestHandler.js) -> I luv u abal <3
url to reduce to a key something like /channels/266277541646434305/messages/266277541646434305/
method of the request, usual http methods like get, etc.
reduced url: /channels/266277541646434305/messages/:id/
Generated using TypeDoc
Ratelimiter used for handling the ratelimits imposed by the rest api