3.5k views
1 vote
Let userblock = ["", "", ""]

if(message.author.id === userblock) {
//code
}



HELP PLZ I NEED A DISCORD.JS COMMAND FOR BLACK LISTING USERS ASAP ;-;

User Caution
by
7.6k points

1 Answer

3 votes

Put the ids of the users you want to blacklist in an array, then check them with

if(userblock.includes(message.author.id))

{

//code

}

User Ritiek
by
6.9k points