discrd.js edit message code example
Example 1: how to edit message discord.js
message.channel.send("Beep").then((sentMessage) => sentMessage.edit("Boop!"
Example 2: discord.js edit message by id
client.channels.cache.get(channelid).fetchMessage(messageid).then(msg => msg.delete());
Example 3: discord.js how to edit a message
message.channel.send("Beep").then((sentMessage) => sentMessage.edit("Boop!"))