mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
Added option to count rate limits as errors
`options.rate_limit_as_error`
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user