Add edit_original_message()
for MessageComponentInteraction
#2493
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
in the discord api Interaction Callback Type
with value
7
we can update the message the components belong to as a interaction response, but currently under the MessageComponentInteraction there's only methods related to defer, reponse and follow-upSo i tried to add it myself, basically the same but specify the
.kind(InteractionResponseType::UpdateMessage)
it does work but I'm not sure should it using the same
CreateInteractionResponse
struct,although it's editing a message but for discord server it should be the same.
thanks for reading