mirror of
https://github.com/danbulant/discord.js
synced 2026-05-26 05:22:15 +00:00
lel (#824)
This commit is contained in:
parent
aa4cb97a1c
commit
9f7c630796
1 changed files with 1 additions and 0 deletions
|
|
@ -108,6 +108,7 @@ class ShardingManager extends EventEmitter {
|
|||
return new Promise((resolve, reject) => {
|
||||
if (amount === 'auto') {
|
||||
getRecommendedShards(this.token).then(count => {
|
||||
this.totalShards = count;
|
||||
resolve(this._spawn(count, delay));
|
||||
}).catch(reject);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue