discord.js icon indicating copy to clipboard operation
discord.js copied to clipboard

updating djs restarts all shards

Open imranbarbhuiya opened this issue 2 years ago • 2 comments

Which package is this bug report for?

discord.js

Issue description

Updating djs when the bot is running restarts all the shards. This happens for both ShardingManager as well as for auto shard.

Steps to repro

  • Start a bot
  • Update djs

Code sample

No response

Package version

Both v13 and v14 latest

Node.js version

v18.x

Operating system

Windows and Linux

Priority this issue should have

Medium (should be fixed soon)

Which partials do you have configured?

Not applicable (subpackage bug)

Which gateway intents are you subscribing to?

Not applicable (subpackage bug)

I have tested this issue on a development release

No response

imranbarbhuiya avatar Nov 27 '22 06:11 imranbarbhuiya

Uhh, yeah that's impossible, especially with the 2 repro steps you've provided. If you're using something akin to pm2, nodemon, etc, that is outside of discord.js's realm and there's nothing we can do to "fix" what isn't even a bug.

Maybe there's more info you forgot to give us? Follow up if so

vladfrangu avatar Jun 29 '23 18:06 vladfrangu

I'm using pm2 but without watch mode (I haven't tried without pm2 yet) and it doesn't restart other projects, it only restarts djs bots with sharding (it doesn't restart if u arent sharding). I'll try to make a repro and also see if it restarts without pm2

imranbarbhuiya avatar Jul 01 '23 12:07 imranbarbhuiya

Re-open if this still exists/you can provide more minimal repro steps.

didinele avatar Jul 06 '24 10:07 didinele