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?
Was this page helpful?