Emoji order not being followed
So I've been having this issue where reacting using does not work as intended.
My code:
I'm reacting with 3 emojis and everything reacts in the order I want it to in development but ONLY in the guild the emojis are added in.
The minute I try it in a different guild, the order is messed up? I don't enter what's causing this issue.
My guess was that it's latency but that doesn't affect it at all. My second guess was that the emoji wasn't cached properly and takes time to resolve in different guilds but im unsure.
Please let me know if there's anything you can help me with. I will say that my code is proper and it's not the code but more of either discord or caching.
18 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 OPMaybe the order in
reactions[personName].emojis
isn't correct?I checked the order and it is correct
The order works properly in the guild where the reactions actually are but doesn't in other guilds
No person name is just a key in the config that looks for like the trigger word to react to
it's not guild based or anything
Here's a snippet:
so personName is
mac
yes
well not mac
but a different name but the gist is the same. I sent you a snippet of my reactions but the structure is the same
It's the sameFor some reason I also think it's something to do with 3 reactions (or more) because when trying it with another name that has 2, it works fine everytime
Yeah it's def 3 or more
They appear under the message in the wrong order. I don't have a messageReactionAdd event
It's just a trigger word andd the bot reacts to the message with specified reactions so I don't use the
messageReactionAdd
event as I don't require that ofcUnknown User•15mo ago
Message Not Public
Sign In & Join Server To View
Thank you
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
I've fetched it and the order is still correct
I'm very confused but it seems like even dyno has the same issue so perhaps its a discord issue
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
Correct
Oh wait yes im dumb
the order is correct in the message
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
yeah makes sense
perfect, thank you for your help
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
that's an interesting bug though
because this "visual glitch" doesn't happen on the guild that the emojis are in
and that this visual glitch only happens with more than 3 reactions
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
true 💀