Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

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")
        }

    }
})
Comment

PREVIOUS NEXT
Code Example
Javascript :: json array in hidden field not coming 
Javascript :: get element with data attribute javascript 
Javascript :: useeffect cleanup in reactjs 
Javascript :: javascript store value in array 
Javascript :: vue axios post return json data 
Javascript :: compare objects 
Javascript :: for each array javascript 
Javascript :: javascript include property array object 
Javascript :: change text shadow javascript 
Javascript :: pdf to json online 
Javascript :: crypt a string jquery 
Javascript :: how to do get request in axios 
Javascript :: getattribute javascript 
Javascript :: javascript download html to pdf 
Javascript :: set selected option jquery 
Javascript :: react check internet connection 
Javascript :: use $ instead of jQuery 
Javascript :: Best way to execute js only on specific page 
Javascript :: javascript find the longest string in array 
Javascript :: mongodb replace string 
Javascript :: post request javascript 
Javascript :: js random unique id 
Javascript :: discord.js presence update 
Javascript :: html js how to draw on screen 
Javascript :: hti laravel route from javascript file 
Javascript :: how to increment variable value in javascript 
Javascript :: var vs let vs const js 
Javascript :: jspdf 
Javascript :: next connect 
Javascript :: javascript https post 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =