How to edit a message embed? #1561
Unanswered
henriqueleite42
asked this question in
Q&A
Replies: 1 comment
-
I was able to work around it using: jsonData, err := json.Marshal(message)
if err != nil {
return
}
bodyWithoutClose := bytes.NewReader(jsonData)
body := io.NopCloser(bodyWithoutClose)
s.ChannelMessageEdit(i.ChannelID, i.Message.ID, "", func(cfg *discordgo.RequestConfig) {
cfg.Request.Body = body
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there any way or workaround to edit a message embed?
I found the method
ChannelMessageEdit
, but it only allows you to edit the messagecontent
and not overwrite it's embeds.The discord API can handle editing more fields than just the content: https://discord.com/developers/docs/resources/webhook#edit-webhook-message
Beta Was this translation helpful? Give feedback.
All reactions