When replying to an interaction button press, how do I get the original interactions options?

The response does not seems to have an options object
7 Replies
d.js toolkit
d.js toolkit12mo 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!
PixelBlob
PixelBlobOP12mo ago
my bot goes offline a decent amount would the collector be able to deal with that? the interaction is replied to with a message containing buttons when one of those buttons is clicked I would like to get the options that the user provided but discord.js seems to keep a smaller version of the interaction cached? that does not contain the extra info like options provided
PixelBlob
PixelBlobOP12mo ago
No description
PixelBlob
PixelBlobOP12mo ago
And as far as I can see theres no option to fetch and interaction by id it seems a client can do it, atleast from what ive seen in devtools
PixelBlob
PixelBlobOP12mo ago
No description
PixelBlob
PixelBlobOP12mo ago
is there an endpoint like this or something built into the library I can use to access the interations options after the fact? Basicly what im trying to acomplish is having a button that reruns the command that the user ran so I dont have to keep rerunning the command whilst im doing dev stuff or if users want to rerun the command :/ may possibly use that api route I found ... until they maybe add a route that works on bots
Want results from more Discord servers?
Add your server