Pre-fill message input with slash command on click button

the purpose of what im doing is to have a message send from my bot with button under, when a user click on a button the field of the message input be fill with a command and the user have just to complete the option of the command and run it, i was wondering if it possible and how i can do that ?
13 Replies
d.js toolkit
d.js toolkit•10mo 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! - ✅ Marked as resolved by OP
treble/luna
treble/luna•10mo ago
you cannot prefill options no you can mention commands yes
remyShift
remyShift•10mo ago
yh i imagine i cant prefill options on click cuz it cant invent them but i was talking about prefill the input message field
remyShift
remyShift•10mo ago
No description
remyShift
remyShift•10mo ago
like if a click on a button i want in that input message field "/<commandName> <option1:> blank <option2>: blank ..."
treble/luna
treble/luna•10mo ago
you cant
remyShift
remyShift•10mo ago
:(( and what do you mean by mention the commands ?
remyShift
remyShift•10mo ago
okay thx but it didnt solve my problem thx
treble/luna
treble/luna•10mo ago
because you cant
remyShift
remyShift•10mo ago
i will find an other way
treble/luna
treble/luna•10mo ago
the closes you can get is mentioning the command
remyShift
remyShift•10mo ago
yeah i understand
Want results from more Discord servers?
Add your server