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