Fix naming conflict with ShardingManager#respawn

This commit is contained in:
Schuyler Cebulskie
2017-11-19 02:03:44 -05:00
parent 637ea09532
commit f777c19fbf
3 changed files with 3 additions and 3 deletions

View File

@@ -184,7 +184,7 @@ class ShardingManager extends EventEmitter {
* @param {boolean} [waitForReady=true] Whether to wait for a shard to become ready before continuing to another
* @returns {Promise<Collection<string, Shard>>}
*/
async respawn(shardDelay = 5000, respawnDelay = 500, waitForReady = true) {
async respawnAll(shardDelay = 5000, respawnDelay = 500, waitForReady = true) {
let s = 0;
for (const shard of this.shards) {
const promises = [shard.respawn(respawnDelay, waitForReady)];