Accessing a property from each shard.
How do I access an external property from each shard. Example: An array that can have different data on different shards. How do I get access to that array from each shard?
6 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.Why do you need to exactly?
Actually I have a pointer that goes through each guild and check if there is any "role give-out pending".
This is to handle rate-limit issues with role add. So that pointer is different for each shard because each shard has access to different guild.
So I want access to that pointer array on main process.
@monbrey
This is working for me


yes it's just array of strings. but how will the client know that where 'verifiedRoleGiveOut' variable is located?
how do I attach it to client?
oh
hmm
okay got it
Thanks :)