Roll For UGC (Issue with epheremal message out of stock message, not showing up at correct time.)

So, my code is working properly, the only issue I'm running into is that when someone gets dmed a code when they roll the winning number 6969 it doesn't immediately give them the epheremal message that codes are out of stock and continues to let the other users roll the dice. Am I doing something incorrectly? Should I put like the check somewhere else or something, cause i ran in to the issue of it allowing another person to roll the winning number 6969 and get dmed the same code, when it should have not gave any dm of this var code since the codes contained was empty, as it got removed too. I added the full code to pastebin since it seemed kind of long to me. https://pastebin.com/fE4Khjix
Pastebin
Roll For UGC (node.js) - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
2 Replies
d.js toolkit
d.js toolkit9mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
infinitygl
infinityglOP9mo ago
version 14
Want results from more Discord servers?
Add your server