MessageUpdate gets triggered whenever another bot posts a message with embed

my bot keeps on triggering message update when ever another bot (PingCord in this instance) post a new message with an embed. idk why a update event keeps on triggering even when there is no message update taking place
12 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Febkosq8
Febkosq8OP3y ago
this is the event for one of the sample messages that PingCord bot posted
Febkosq8
Febkosq8OP3y ago
i have this in my messageUpdate event to understand whats going on
Febkosq8
Febkosq8OP3y ago
https://pastebin.com/gjKzGfLh this was the output
Pastebin
Discord Event log - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Febkosq8
Febkosq8OP3y ago
original message \
monbrey
monbrey3y ago
embeds pretty much always trigger messageUpdate, that's how Discord renders them
Febkosq8
Febkosq8OP3y ago
ok. is there any fix for this situation ?
monbrey
monbrey3y ago
Can't fix what isn't broken Embeds are received via messageUpdate
Febkosq8
Febkosq8OP3y ago
but in this case both oldMessage and newMessage has the same embed i understand that this is how its supposed to work but for my case i would like to know if there is a actual change in the message content or embed i tried comparing the content which seemed fine but for embed it seems like there is no easy way to compare two embeds to determine if they are same
Febkosq8
Febkosq8OP3y ago
Febkosq8
Febkosq8OP3y ago
d.js docs
d.js docs3y ago
method Embed#equals() Whether the given embeds are equal.
Want results from more Discord servers?
Add your server