Get username of someone who sent a command (javascript)

For me in my code I just hit payload.user or grab the display-name from payload.tags

So to get the username or display name will depend on your code or if you are using a library refer to the library documentation