You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I define spawnOptions in the clusterManager, they aren't being passed when the cluster is being spawned. Seems like in the spawn function when you're destructuring the object and assigning default values, it's only assigning the default values and not the values from this.spawnOptions. I cloned the repo and tested locally, and saw the same results. However, if I destructured the object within the function, it worked fine.
It's really strange, and not sure why it's happening because it should be working as expected. Maybe I'm doing something wrong here...
Describe the bug
If I define
spawnOptions
in theclusterManager
, they aren't being passed when the cluster is being spawned. Seems like in thespawn
function when you're destructuring the object and assigning default values, it's only assigning the default values and not the values fromthis.spawnOptions
. I cloned the repo and tested locally, and saw the same results. However, if I destructured the object within the function, it worked fine.It's really strange, and not sure why it's happening because it should be working as expected. Maybe I'm doing something wrong here...
(To Reproduce)
Link to function
Calling clusterManager:
Changes to
spawn function
:Output:
Expected:
Discord.js Version
The text was updated successfully, but these errors were encountered: