#How to hide user's answers

9 messages · Page 1 of 1 (latest)

hybrid warren
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

lime herald
#

Send a message with a button.
When a user clicks the button, show them a modal where they can actually enter their answer.
When they submit the modal, you can reply using ephemeral: true to make it a message where only the user who submitted the response will see it.

Interactions can sound complicated, but they open the door to a lot more

#

The guide has examples for all of these, but feel free to ask questions for combining them

earnest wigeon
#

Or just use a slashcommand and reply with ephemeral: true. That’s easier for the users and also for you… since the reply will only be visible to the one that did the command so will be their answer they submitted

lime herald
#

That just depends on if only one person should run the slash command to ask the question, and if once the question's asked, anyone should be able to respond

earnest wigeon
#

No, did you see the content of the slashcommand I just used in here?

#

You only see it if the reply is non-ephemeral

#

You need to .reply({content: …, ephemeral: true})

#

Every interaction needs to be responded to (else you get an error in discord app)