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•3y ago
Message Not Public
Sign In & Join Server To View
this is the event for one of the sample messages that PingCord bot posted
i have this in my messageUpdate event to understand whats going on
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.
original message \
embeds pretty much always trigger messageUpdate, that's how Discord renders them
ok. is there any fix for this situation ?
Can't fix what isn't broken
Embeds are received via messageUpdate
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