captcha system

im making a captcha system but it keeps throwing the interaction failed. i just need someone to tell me what i did wrong and how to fix
7 Replies
d.js toolkit
d.js toolkit3w 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!
3zs
3zsOP3w ago
current version for discord.js is 14.16.3 node version is 22.12.0
duck
duck3w ago
just to clarify, which interaction is failing? does everything else aside from the response work as expected? are you receiving any errors in your console as well?
3zs
3zsOP3w ago
the command runs perfectly fine, its just the button interaction of the first embed that does not do anything so far
duck
duck3w ago
entirely does nothing? if it doesn't even send the dm as expected, sounds like that code isn't executing in the first place
d.js docs
d.js docs3w ago
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
duck
duck3w ago
that aside, you may also want to defer your responses for both the command and the buttons since it seems you do some async operations before responding these could also result in your bot not responding in time

Did you find this page helpful?