mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
added large_threshold as an option
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user