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

ANSI codeblocks inside an embed appears buggy when the message is edited

Open Sayrix opened this issue 1 year ago • 0 comments

Description

When editing a message that contains an ANSI code block inside an embed, the formatting intermittently breaks. For a brief period after the edit, the raw ANSI text is displayed instead of the properly formatted version.

Steps to Reproduce

  1. Create an embed containing a code block with ANSI formatting.
  2. Edit the embed periodically (e.g., every few seconds or minutes).
  3. Observe the formatting behavior immediately after each edit.

Expected Behavior

Like in a normal message, but inside an embed.

https://github.com/user-attachments/assets/1375e953-43b5-4de3-8631-d5549986d5cf

Current Behavior

After editing the embed, the ANSI formatting breaks temporarily, showing raw, unformatted text. This behavior resolves itself after a short period.

https://github.com/user-attachments/assets/de0bac26-0c5f-4de2-a42b-8858df22ea2c

Screenshots/Videos

No response

Client and System Information

stable 356429 (73f35b1) Build Override: N/A

Sayrix avatar Jan 05 '25 14:01 Sayrix