- What's your exact discord.js
npm list discord.jsand nodenode -vversion? - Not a discord.js issue? Check out #1081585952654360687.
- 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 OP
#Buttons dont work for my quiz
4 messages · Page 1 of 1 (latest)
Do you get any errors on the console? It looks like you do some database query before you reply to the buttons, interactions need to be acknowledged within 3sec, it's better if you defer at the top level (before any db query) and then editReply or followUp
no i dont receive any errors in the console, i only get met with 'this interaction failed' when clicking the button. on my console i only see that i pressed the button
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 more