message.channel.send(embed).delete(1000) code example
Example 1: discord js delete message after time
message.reply('Invalid command')
.then(msg => {
msg.delete({ timeout: 20000 /*time unitl delete in milliseconds*/});
})
.catch(/*Your Error handling if the Message isn't returned, sent, etc.*/);
Example 2: message.channel.name.includes
if (!message.channel.name.includes("bot-commands")) return message.channel.send('do commands only at <#bot-commands-id>');
if(message.content.startswith(`${prefix}help`)){
message.channel.send('help command')
}