mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Fix naming conflict with ShardingManager#respawn
This commit is contained in:
@@ -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)];
|
||||
|
||||
Reference in New Issue
Block a user