Question about interaction

I have a slash command where the you can mention user. The command sends the nickname of the user who typed it and who was mention in it. Below the command I have a button. I would like it to send the same thing as before when pressed, only to add the nickname of the user who pressed it. Does anyone have an idea how to do this?
2 Replies
Yoqurt
YoqurtOP2y ago
I'm mainly thinking of how to write a variable on this user what is pressing the button, to get his nickname
d.js docs
d.js docs2y ago
Documentation suggestion for @yoqurt:property ButtonInteraction#user The user who created this interaction
Want results from more Discord servers?
Add your server