Can two shards have the same guild in the guild cache?

This may seem like a dumb question, but it's genuine; I believe I am having a scenario where two shards have the same guild. ping on reply
25 Replies
d.js toolkit
d.js toolkit7mo ago
- 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!
Syjalo
Syjalo7mo ago
Yes, if you manually fetch the guild
Stqlth
Stqlth7mo ago
interesting, is there any other way? (I ask because I don't believe I am doing that, but I will double check to confirm)
Syjalo
Syjalo7mo ago
A way to get a guild? I don't think you can get the guild in your main process, but you can do whatever you want in broadcast eval
Stqlth
Stqlth7mo ago
I mean is there any other way a guild, not assigned to the shard, to get into the shard's guild cache
Syjalo
Syjalo7mo ago
I'm not sure if fetch is good there. There's cache option to prevent caching new fetched structures. I'd prefer to use broadcast eval.
Stqlth
Stqlth7mo ago
I might not be explaining my question right. Basically, I have a situation where two shards have the same guild (I don't want this) and I am not sure how it happened I don't really ever fetch specific guilds
monbrey
monbrey7mo ago
It shouldn't happen on its own, no
Stqlth
Stqlth7mo ago
Hmm, I am going to keep investigating and follow up here. If there is a bug causing this it could be specific to big bots can duplicates exist in the cache?
monbrey
monbrey7mo ago
Of one shard? no Well, unless you managed to manually store an entire guild object under the wrong id but that would mess up so much more
Stqlth
Stqlth7mo ago
yea but on start up there would never be duplicates right?
monbrey
monbrey7mo ago
correct
Stqlth
Stqlth7mo ago
welp, I don't know what the else could be causing my issue so I am going to add some logging to ensure this isn't the case (this is from a job that runs when the bot finishes logging in):
Stqlth
Stqlth7mo ago
No description
monbrey
monbrey7mo ago
The cache is already a map
Want results from more Discord servers?
Add your server