discord js clear console

Solutions on MaxInterview for discord js clear console by the best coders in the world

showing results for - "discord js clear console"
Amandine
31 Jan 2021
1// DONT DISLIKE IF YOU CANT UNDERSTAND // 
2client.on('message', message => {
3    if (message.author.bot) return;
4    if (message.content.toLowerCase().startsWith(prefix + 'clear console')) {
5        if (message.author.id === 'ADMIN-ID-HERE' || message.author.id === 'ANOTHER-ADMIN-ID-HERE' ) {
6            console.clear()
7            message.channel.send("**Console Cleared**")
8        } else {
9            message.channel.send("This Command is Resticted To Bot Owners")
10        }
11
12    }
13})