You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the bot sends a message with an embed, it triggers on_message_edit.
If the message with the embed is sent by a user instead, it works correctly and on_message_edit doesn't trigger.
Discord fires what's called an "embed-only edit" to update the embeds in the message of the links you posted in the chat. It's best to check the delta for things you care about, e.g. if before.content != after.content or something along those lines.
Summary
When the bot sends a message with an embed, it triggers
on_message_edit
.If the message with the embed is sent by a user instead, it works correctly and
on_message_edit
doesn't trigger.Reproduction Steps
1 - Run the bot
2 - Send any message to the bot
Expected Results
on_message_edit
should not trigger andmessage update!
should not be printed.Actual Results
Checklist
System Information
Windows:
Linux
The text was updated successfully, but these errors were encountered: