Responding to a button interaction received from the gateway to launch activity

After configuring a button to launch an activity (within a message sent by the app's bot), the activity won't launch. Getting a 'This interaction failed' error message. Is specifying the interaction callback type = 12 not enough? Are there other parameters needed in the response object body (sent to the HTTP API) to launch the activity (i.e. client ID, bot token)?
2 Replies
d.js toolkit
d.js toolkit2d 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!
NyR
NyR2d ago
And what errors do you get on you console?
- Post full error stack - Show your code Although this is not strictly d.js related and you should move to #other-js-ts

Did you find this page helpful?