Edited embeds sometimes quickly revert back to their initial state, or don't update at all
Description
Sometimes when an embed in a message is edited, the embed will update, then immediately revert back to its original state, before the edit.
The example in the provided video shows no delay before editing the message after the message was sent, but this does still occur when short delays are used.
Sometimes you will just not see the embed update at all. The message will change to say edited, but the embed doesn't visually change.
Steps to Reproduce
Send a message with an embed, then immediately edit the message with a new updated embed. It might take a couple tries, but usually happens within 10 tries.
import Discord from "discord.js"
const client = new Discord.Client({
intents: [
Discord.GatewayIntentBits.MessageContent,
Discord.GatewayIntentBits.GuildMessages,
Discord.GatewayIntentBits.Guilds
]
})
client.on("messageCreate", async message => {
if (message.content === "f!ping") {
const msg = await message.channel.send({
embeds: [
{
description: "before"
}
]
})
const edit = await msg.edit({
embeds: [
{
description: "after"
}
]
})
}
})
client.login(TOKENHERE)
Expected Behavior
The embed actually updates every time
Current Behavior
The embed will randomly revert to the initial state, or just not update at all.
Screenshots/Videos
https://github.com/user-attachments/assets/07acb975-aef6-4753-86b2-afeeaabc8a65
Client and System Information
Discord.js v14.23.2 Windows 11 25H2 26300.7171
Discord.js v14.23.2 Ubuntu 22.04.4 LTS (GNU/Linux 6.8.0-1014-oracle aarch64)
Discord.js v13.8 Ubuntu 22.04.1 (GNU/Linux 5.15.0-1048-oracle aarch64)
Does it show the updated content after a refresh of your client? This seems to be race conditions and eventual consistency.
The updated content does not show on client refresh, and also does not show on clients that never loaded the original message
I also have this issue, using discord.py 2.3.2