How i can remove embed from message?
I need remove embed from message, i edit message with embed and after edit embed still on message
Solution:Jump to solution
You need to set the embeds property to an empty list
embeds = mutableListOf()
...9 Replies
Solution
You need to set the embeds property to an empty list
embeds = mutableListOf()
But with buttons? components?
can you be more specific on what you're doing?
Confirm menu, when user press button opens modal window with text parameter. After closing modal windows sending message with confirmation
With 2 buttons, accept and cancel. When press accept i edit message to text like "Creating ticket"
OK, so you sent a message previously, and you want to edit that message when someone submits a modal
you'll need to store a reference to that message somewhere (or retrieve it by ID) and edit it directly
so, eg,
maybe something like this
I need change the response message
Well, you can update
content
instead of embeds
content = "..."
This approach only works for public messages, though
if you're using ephemeral messages, you'll need to do this another way
something like that maybeAfter editing buttons still on message


it's the same thing,
components = mutableListOf()