fix: Better global ratelimit management (#2801)

* fix: better global ratelimit handling in RequestHandler

fix: Remove useless line

fix: Better global ratelimit management

* refactor: Changed RESTManager#globallyRateLimited to be a getter

* refactor: Remove RESTManager#globallyRateLimited getter

* docs: Updated comments to reflect latest changes
This commit is contained in:
Kyra
2018-08-29 01:28:21 +02:00
committed by Isabella
parent f326fe67b1
commit 989c365ef1
2 changed files with 15 additions and 16 deletions

View File

@@ -9,7 +9,6 @@ class RESTManager {
constructor(client, tokenPrefix = 'Bot') {
this.client = client;
this.handlers = new Collection();
this.globallyRateLimited = false;
this.tokenPrefix = tokenPrefix;
this.versioned = true;
this.globalTimeout = null;