{user_name} is the name of the person who typed the command.
But what if you want the name of someone else, like the person they picked in /hug @Alex? Then you point the variable at that person by adding square brackets [ ] at the end:
What can go inside the brackets?
Three kinds of things. Pick whichever you have.- A plain ID
- An input
- Another variable
Type the ID straight in. The variable then always points at that one person, channel or server.
<@136327647792726016> or <#879733469452836864>, DogeBot takes the ID out of it for you.
Which variables can be pointed?
Your own variables
The same trick works for your own User variables. This is how you show someone else’s coins:A full example: /whois
A command that shows facts about any member.1
Make the command
Make a slash command called
whois.2
Add a Member picker input
Add a Member picker input and name it
member.3
Add a Reply with a card block
Fill it in like this:
4
Save and try it
Press Save Command and type
/whois @someone in Discord.