Is it possible to add metadata to a message?
I'm trying to identify responses that my bot gives as a result of one specific (/) command. I don't want to differentiate messages by checking their format. I tried looking for flags, embeds, even using nonce (really shady), but every attempt failed.
Attached are images of my code, I need to do something like this, but using some kind of metadata or any other parameter that allows me to get this "emoji" data.
Attached are images of my code, I need to do something like this, but using some kind of metadata or any other parameter that allows me to get this "emoji" data.
3 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 cant pass in custom data
Use some sort of database or map and store the id of the message along with its data
Thank you!