'How to edit followUp interaction

I am sending a .followUp() message with buttons, but after a button-interaction I can not edit the followUp message.

Is it possible to edit a followUp interaction, and if so... how?



Solution 1:[1]

No need for a complicated collector as @Azer154 suggested, because followUp() resolves with a [Discord].Message which has an edit method. Here's a code snippet:

interaction.followUp("Follow up message").then(msg => {
    msg.edit("Edited the follow up message");
});

More information available on the official documentation.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Fowled