diff --git a/lib/Client/Client.js b/lib/Client/Client.js index e6158910f..8f6175940 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 9bd48c715..c31dd5669 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 d95da5af6..296d4b642 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 480a80cab..5f6af9668 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",