Emoji order not being followed

So I've been having this issue where reacting using
await message.react(emoji)
await message.react(emoji)
does not work as intended. My code:
for (const personReaction of reactions[personName].emojis) await message.react(personReaction)
for (const personReaction of reactions[personName].emojis) await message.react(personReaction)
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
d.js toolkit
d.js toolkit15mo 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! - Marked as resolved by OP
Syjalo
Syjalo15mo ago
Maybe the order in reactions[personName].emojis isn't correct?
Mac
MacOP15mo ago
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:
"mac": {
"wildcard": true,
"type": "reaction",
"emojis": [
"<:AU_MacSip:1162126122520170506>",
"<a:AU_MacHearts:1162126124919296090>"
]
},
"mac": {
"wildcard": true,
"type": "reaction",
"emojis": [
"<:AU_MacSip:1162126122520170506>",
"<a:AU_MacHearts:1162126124919296090>"
]
},
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 same
Mac
MacOP15mo ago
No description
Mac
MacOP15mo ago
No description
Mac
MacOP15mo ago
For 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 ofc
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Mac
MacOP15mo ago
Thank you
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Mac
MacOP15mo ago
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
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Mac
MacOP15mo ago
Correct Oh wait yes im dumb the order is correct in the message
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Mac
MacOP15mo ago
yeah makes sense perfect, thank you for your help
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Mac
MacOP15mo ago
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
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Mac
MacOP15mo ago
true 💀
Want results from more Discord servers?
Add your server