Well as you know the server is getting cached on shard 1 idk why but it seems to always be the case. I fetch (cache.get) channels from that server for my bot to function but any other shard that doesn't share the same shard as the server with these channels can't fetch these channels on that other shard. I tried to use broadcast eval and other ways like saving channels in a seperate function in another file and initializing it from shard 1 but it always returned undefined on the other shards. I'm not sure either if im using broadcast eval correctly. I want to fix that but first i also want to know how is the main server we get the channels from allocated to shards? Can i get this server on which shard too and can i start shards before the others? I really need to fix this asap.
Similar Threads
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
d-Iaa
discord.js - Imagine an app
Support server for discord.js, a Node.js module to interact with Discord's apps API.