mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 12:33:30 +01:00
lel (#824)
This commit is contained in:
committed by
Schuyler Cebulskie
parent
aa4cb97a1c
commit
9f7c630796
@@ -108,6 +108,7 @@ class ShardingManager extends EventEmitter {
|
|||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
if (amount === 'auto') {
|
if (amount === 'auto') {
|
||||||
getRecommendedShards(this.token).then(count => {
|
getRecommendedShards(this.token).then(count => {
|
||||||
|
this.totalShards = count;
|
||||||
resolve(this._spawn(count, delay));
|
resolve(this._spawn(count, delay));
|
||||||
}).catch(reject);
|
}).catch(reject);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user