#Buttons dont work for my quiz

4 messages · Page 1 of 1 (latest)

vocal pebbleBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • 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
hollow burrow
#

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

narrow kindle
gloomy edgeBOT
#

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