Button interaction reply in public chat
Hey,
Is it possible to reply to a button press on a channel, in a way that it is only sent to the interaction user? So that the button/message remains unchanged to other users?
12 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!You can send an ephemeral reply
(its the same for buttons)
Ah okay. So it will reply with a new message, right? that works for me, however it would be neat to add something to the button message it self. such as change the button text to "completed" or similar. is that possible as ephemeral?
if the message with the button was ephemeral when you sent it, then you can just use .update()
um, so if i send a ephemeral message to a channel, its unique for each viewer and visible to all?
no, its just visible to the one who initiated the interaction you sent the button with
okay thanks
Lastly to clarify. So it's not possible to send a message to a channel that is public to everyone, that has a button which can be updated to have different text for each individual user after they interact with it?
You are right, it's not! You can only hide it by making it ephemeral
You cannot make messages show different things for different users
All right, thanks!
Also I don't see the need to update the message button to show 'Completed' when you are already replying to it, just reflect what you want to reflect but on the ephemeral response