if one user is already using a slash command, other users are unable to create their own instances

I made a quiz bot recently and when more than 1 person is trying to use the commands at a time the bot responds with "this command failed" when they try to enter the loop for the quiz. Is there some reason it doesn't support multiple instances?
3 Replies
d.js toolkit
d.js toolkit2y ago
• 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.
KAVI
KAVI2y ago
Means your code is not optimized for multiple use. Or it's not created to handle multiple interactions. Share your code where the loop is taking place
Snapper
SnapperOP2y ago
https://pastebin.com/ySN8p1y2 - Whole script in case you need more. Loop starts at line 97 thanks homie!
Want results from more Discord servers?
Add your server