blacklist system not working
it says the user is blacklisted but the commands are still running for them
20 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.![](https://cdn.answeroverflow.com/1125699021105795144/image.png)
add another quote.
thats not the issue, i deleted it on acciden twhen i was sending the code here.
😭 ik im looking at it rn
theres no error, it just doesnt blacklist the user so somethings wrong with the event.
well you didnt add any checks in the actual command async function to check if a player is blacklisted.
![](https://cdn.answeroverflow.com/1125700037037539378/image.png)
its right there
how are you actually creating the commands
you are using rest routes so interactionEvent wouldnt work
and like i said it works, the person gets added to the schema on mongodb. so the only thing not working is the fact that the person can still run the command.
correct...
the issue is that you have a check in a useless spot.
ok
you are using REST put to create the command correct?
yep