diff --git a/lib/Client.js b/lib/Client.js index 21712195fa..c42dfd7c86 100644 --- a/lib/Client.js +++ b/lib/Client.js @@ -360,7 +360,7 @@ class Client extends EventEmitter { try { const data = await (this.options.maxShards === "auto" ? this.getBotGateway() : this.getGateway()); this.shards.maxConcurrency = this.options.maxShards === "auto" ? data.session_start_limit.max_concurrency : 1; - this._client.options.useMaxConcurrency = this._client.options.useMaxConcurrency && this.shards.maxConcurrency !== 1; + this.options.useMaxConcurrency = this.options.useMaxConcurrency && this.shards.maxConcurrency !== 1; if(!data.url || (this.options.maxShards === "auto" && !data.shards)) { throw new Error("Invalid response from gateway REST call"); }