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
d.js docs
d.js docs3y ago
• 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.
monbrey
monbrey3y ago
Why do you need to exactly?
Ashu
AshuOP3y ago
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
Ashu
AshuOP3y ago
This is working for me
Ashu
AshuOP3y ago
Ashu
AshuOP3y ago
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 :)
Want results from more Discord servers?
Add your server