how to add delete messages command in discord bot js code example
Example 1: delete message discord.js
message.delete()
Example 2: how to send a message then delete it discord.js
message.reply('Invalid command')
.then(msg => {
msg.delete(10000)
})