messageUpdate event comparsion problem
Hi, guys i try to compare oldMessage and newMessage in the event.
But their is a difference when their is an embed in the message, its the property:
content_scan_version
The event gets fired, when i read the message.
I press on a button on my server which will sends an embed to my dm channel. now when i click on the dm channel with the bot. the event gets fired.
is their maybe a workaround?5 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!Compare the content, embeds, components, etc. rather than the entire messages themselves
the embed is the actuall reason for my problem
What differences are you trying to detect? Changes in only the text content of a message?
i save a conversation in my mongo collection
when their is an message edit i update the entire message in my mongo collection