discord js edit fetch message code example
Example: discord.js edit message by id
client.channels.cache.get(channelid).fetchMessage(messageid).then(msg => msg.delete());
client.channels.cache.get(channelid).fetchMessage(messageid).then(msg => msg.delete());