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
d.js toolkit
d.js toolkit2w 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!
TÆMBØ
TÆMBØ2w ago
Compare the content, embeds, components, etc. rather than the entire messages themselves
f1fty
f1ftyOP2w ago
the embed is the actuall reason for my problem
TÆMBØ
TÆMBØ2w ago
What differences are you trying to detect? Changes in only the text content of a message?
f1fty
f1ftyOP2w ago
i save a conversation in my mongo collection when their is an message edit i update the entire message in my mongo collection
Want results from more Discord servers?
Add your server