Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to make a kill command discord.js

let victim = message.mentions.users.first();

        if(!victim){
            message.reply('Mention someone to kill!')
          //if there is no victim the bot will reply with this
        } else {
            message.channel.send(`${victim} was killed!`)
          
        }
 
PREVIOUS NEXT
Tagged: #kill #command
ADD COMMENT
Topic
Name
6+3 =