discord-api-docs icon indicating copy to clipboard operation
discord-api-docs copied to clipboard

Link embeds replace the entire message when the message with the link is edited before the link embeds

Open SquirrelKiev opened this issue 1 year ago • 1 comments

Description

If a message is edited before Discord embeds the contents of the link, when it finally embeds, it will replace the entire message contents with the message contents of when the link was sent. While this is reproducible with a standard user account, it is especially a problem with bot users, as it will carry over the components from the message that had the link too, which causes issues.

Steps to Reproduce

  1. Send a message containing a link that takes a moment to embed (e.g. https://v.animethemes.moe/Makeine-OP1.webm - https://animethemes.moe/ is a good place for finding videos that take a while to embed)
  2. edit it before it embeds
  3. Watch as the edit you made vanishes before your eyes

Expected Behavior

If the message is edited before the embed appears, it simply doesn't add the embed of old.

Current Behavior

It doesn't care and barrels along, replacing the entire message anyway

Screenshots/Videos

https://github.com/user-attachments/assets/0f7f77a7-7f37-4e49-885f-01a5ea016d3c

https://github.com/user-attachments/assets/9c7173f0-b84c-4502-8ed1-4f0ac49ea587

Client and System Information

stable 315432 (4e1f4fc) Host 1.0.9156 x64 (50172) Build Override: N/A Windows 11 64-bit (10.0.26257)

SquirrelKiev avatar Aug 06 '24 01:08 SquirrelKiev

Seems this is fixed now?

SquirrelKiev avatar Sep 24 '24 19:09 SquirrelKiev

Yep, this should be fixed now, and from my testing it is, going to close this out

Rodentman87 avatar Dec 12 '24 20:12 Rodentman87