mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
@@ -71,8 +71,8 @@ var Client = (function (_EventEmitter) {
|
||||
* @type {ClientOptions}
|
||||
*/
|
||||
this.options = options || {};
|
||||
this.options.compress = options.compress || !process.browser;
|
||||
this.options.autoReconnect = options.autoReconnect || true;
|
||||
this.options.compress = options.compress === undefined ? !process.browser : options.compress;
|
||||
this.options.autoReconnect = options.autoReconnect === undefined ? true : options.autoReconnect;
|
||||
this.options.rateLimitAsError = options.rateLimitAsError || false;
|
||||
this.options.largeThreshold = options.largeThreshold || 250;
|
||||
this.options.maxCachedMessages = options.maxCachedMessages || 1000;
|
||||
|
||||
Reference in New Issue
Block a user