Shard Variables
i have these variables
vidchannel
, imgchannel
which can only be accessed by whatever shard access the server that can read the cache of these channels (if that makes sense). Users on other shards can't access these channels. How do i share these variables accross every shard while fetching them from the shard that access the server in which these channels are.
I currently limited the shards count to 1 until i can figure out a solution3 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPYou don't share them - you make note of which shard is handling them, and broadcast functions that need to make use of those channels to it
alright thank you