discord.js Clear Console
// DONT DISLIKE IF YOU CANT UNDERSTAND //
client.on('message', message => {
if (message.author.bot) return;
if (message.content.toLowerCase().startsWith(prefix + 'clear console')) {
if (message.author.id === 'ADMIN-ID-HERE' || message.author.id === 'ANOTHER-ADMIN-ID-HERE' ) {
console.clear()
message.channel.send("**Console Cleared**")
} else {
message.channel.send("This Command is Resticted To Bot Owners")
}
}
})
Undefined