Handle two buttons with one script
How can I make it so that if a user clicks button A with the id of infoDog it'll trigger the info handler, which will show info about dogs. When the user clicks button B with the id of infoCat, it'll trigger the same handler, and will show info about cats (must be infinitely expandable).
Please ping for reply
2 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 OPGot it working
if anybody needs to know, I fixed it by intercepting the request in the interactionCreate script