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