how to update an embed #940
-
Got one more question. How do I update a an embed?
I have this code, but I cant simply override the embed in that message Is this the correct way to do it?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I am still not sure how to update an Embed after the message was sent. Tried different things, but I can't get it to work. How do I need to do it? |
Beta Was this translation helpful? Give feedback.
-
Sorry for the late reply 😅. You'd do it like this: message.edit {
embed {
description = "..."
// ...
// or call your extension function here
buildUpdateEmbed(...)
}
} Note that including |
Beta Was this translation helpful? Give feedback.
Sorry for the late reply 😅.
You'd do it like this:
Note that including
embed { }
blocks inmessage.edit { }
will overwrite all existing embeds, so make sure to (re-)include all embeds you want to keep and add.