Added option to count rate limits as errors

`options.rate_limit_as_error`
This commit is contained in:
Amish Shah
2015-12-16 18:51:32 +00:00
parent 470fbbb6d6
commit b82c318e96
4 changed files with 12 additions and 3 deletions

View File

@@ -21,6 +21,7 @@ export default class Client extends EventEmitter {
this.options = options || {};
this.options.compress = options.compress || true;
this.options.revive = options.revive || false;
this.options.rate_limit_as_error = options.rate_limit_as_error || false;
this.internal = new InternalClient(this);
}