This interaction failed, button not working, djs v14
8 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 OPNot able to figure out why this button isn't working, please help
Button handler:
Code that sends this message:
https://srcb.in/rO19rzGTnq
When the user clicks this button the message is shown:
https://srcb.in/9DNRM8MmQL
ok thanks ill try
Yes that works thanks, but I'm trying to make sure that the
Back
button takes me back to the panel i previously was in and not just the first panel, how do u think i can go about this
ok let me try it outNot able to implement it again:
Button that sends embed: https://sourceb.in/QAR25tN2Dd
Button you see in the screenshot: https://sourceb.in/RwPCnkfGXH
If 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 moreI tried logging things in the console and it says it cant find the lastSetupPanel, I tried fixing it but I couldn't please help.
Button that sends embed: https://sourceb.in/EUrMPLmQwp
Button you see in the screenshot: https://sourceb.in/C4MtsZxrgi
mb i wasnt thinking at all, thanks for ur inputs it works now