Autocomplete on button click
Hi! Can I autofill a command when a user clicks a button on one of my messages? I need text input, and modals aren't great for the flow I want
I'd like clicking the button to put
/somecommand foo
in the message box, and move the cursor there - I thought it might fit the APPLICATION_COMMAND_AUTOCOMPLETE
interaction, but I haven't seen any way to generate that2 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!version is 14.13.0 on 18.15.0, though I doubt it changes the answer :) I can update anything if necessary