diff --git a/lib/Client/Client.js b/lib/Client/Client.js index e6158910..8f617594 100644 --- a/lib/Client/Client.js +++ b/lib/Client/Client.js @@ -60,6 +60,7 @@ var Client = (function (_EventEmitter) { this.options.compress = options.compress || !process.browser; this.options.revive = options.revive || false; this.options.rate_limit_as_error = options.rate_limit_as_error || false; + this.options.large_threshold = options.large_threshold || 250; this.internal = new _InternalClient2["default"](this); } diff --git a/lib/Client/InternalClient.js b/lib/Client/InternalClient.js index 9bd48c71..c31dd566 100644 --- a/lib/Client/InternalClient.js +++ b/lib/Client/InternalClient.js @@ -1287,7 +1287,7 @@ var InternalClient = (function () { token: self.token, v: 3, compress: self.client.options.compress, - large_threshold: 250, + large_threshold: self.client.options.large_threshold, properties: { "$os": "discord.js", "$browser": "discord.js", diff --git a/src/Client/Client.js b/src/Client/Client.js index d95da5af..296d4b64 100644 --- a/src/Client/Client.js +++ b/src/Client/Client.js @@ -35,6 +35,7 @@ export default class Client extends EventEmitter { this.options.compress = options.compress || (!process.browser); this.options.revive = options.revive || false; this.options.rate_limit_as_error = options.rate_limit_as_error || false; + this.options.large_threshold = options.large_threshold || 250; this.internal = new InternalClient(this); } diff --git a/src/Client/InternalClient.js b/src/Client/InternalClient.js index 480a80ca..5f6af966 100644 --- a/src/Client/InternalClient.js +++ b/src/Client/InternalClient.js @@ -1086,7 +1086,7 @@ export default class InternalClient { token: self.token, v: 3, compress: self.client.options.compress, - large_threshold : 250, + large_threshold : self.client.options.large_threshold, properties: { "$os": "discord.js", "$browser": "discord.js",