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.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.
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
so the check would have to be in the async function
give me another command
ok
wait maybe im wrong.. how are you executing the commands?
what?
How are you calling the
async execute
where