discord.js message sent by bot delete and resend when another message is sent code example
Example: how to send a message then delete it discord.js
message.reply('Invalid command')
.then(msg => {
msg.delete(10000)
})
message.reply('Invalid command')
.then(msg => {
msg.delete(10000)
})