Broken Code
https://sourceb.in/C0SmTySYXe the ticketmodel7 does not work, after diagnosing it, it does not even reach the point where the if ticket_model7...
11 Replies
- 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!
- ✅
Marked as resolved by OPIf you aren't getting any errors, try to place
console.log
checkpoints throughout your code to find out where execution stops.
- Once you do, log relevant values and if-conditions
- More sophisticated debugging methods are breakpoints and runtime inspections: learn morebasically
i click submit on the modal
and it says try again
and i did console.log in the place where it says "if (modal_7)..." and no output
the only two places where the code is going tho is creating the modal and then reading the modal (if modal7...)
actually logging
i put console.log in the place where it creates the modal and beyond
and it goes up to the point where the modal is meant to be read
nothing
oh wait
i mean
it did say here we go in console
oh
ill check that now
no output in console
after doing this
u mean the other options in the select menu?
they all work
this is the only one that doesnt
i just loggeed on modalsubmit and it does log
i may have found the issue
shits outside of the if modal submitted...
dumb mistake
my bad for wasting ur time
@Qjuh you can close the thread if u want