Get user who clicked button

I would like to get the nickname of the user who pressed the button, only that when I type there, for example, interaction.member.user.username, it gives me the user who typed the slash command
Was this page helpful?