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
d.js toolkit
d.js toolkit•3mo 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!
NyR
NyR•3mo ago
You can send an ephemeral reply
d.js docs
d.js docs•3mo ago
:guide: Slash Commands: Command response methods - Ephemeral responses read more
chewie 🌈
chewie 🌈•3mo ago
(its the same for buttons)
Koozu
Koozu•3mo ago
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?
chewie 🌈
chewie 🌈•3mo ago
if the message with the button was ephemeral when you sent it, then you can just use .update()
Koozu
Koozu•3mo ago
um, so if i send a ephemeral message to a channel, its unique for each viewer and visible to all?
chewie 🌈
chewie 🌈•3mo ago
no, its just visible to the one who initiated the interaction you sent the button with
Koozu
Koozu•3mo ago
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?
NyR
NyR•3mo ago
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
Koozu
Koozu•3mo ago
All right, thanks!
NyR
NyR•3mo ago
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