edit past message discord.js code example
Example 1: how to edit message discord.js
message.channel.send("Beep").then((sentMessage) => sentMessage.edit("Boop!"
Example 2: discord.js how to edit a message
message.channel.send("Beep").then((sentMessage) => sentMessage.edit("Boop!"))