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
8.2k 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
7.4k points

Related questions

asked Feb 26, 2022 55.2k views
LJ White asked Feb 26, 2022
by LJ White
8.3k points
2 answers
4 votes
55.2k views
asked Dec 13, 2024 69.2k views
Dolfa asked Dec 13, 2024
by Dolfa
8.3k points
1 answer
4 votes
69.2k views