#messageUpdate event comparsion problem

6 messages · Page 1 of 1 (latest)

barren birch
#

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?

proper meadowBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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!
median pecan
#

Compare the content, embeds, components, etc. rather than the entire messages themselves

barren birch
median pecan
#

What differences are you trying to detect? Changes in only the text content of a message?

barren birch
#

i save a conversation in my mongo collection