how to clear all messages on discord server code example
Example 1: discord delete messag
message.delete({timeout: 5000 , reason: "system"})
Example 2: discord bot clear messages
switch(args[0]){
case 'clear':
if(!args[1]) return message.reply('Error please define second argument')
message.channel.bulkDelete(args[1]);
break;
}