discord-api-docs
discord-api-docs copied to clipboard
ANSI codeblocks inside an embed appears buggy when the message is edited
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
- Create an embed containing a code block with ANSI formatting.
- Edit the embed periodically (e.g., every few seconds or minutes).
- 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