Skip to main content
Normally a variable is about whoever started the command or event. {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:
The bot sends:

What can go inside the brackets?

Three kinds of things. Pick whichever you have.
Type the ID straight in. The variable then always points at that one person, channel or server.
To copy an ID in Discord, turn on Developer Mode (User Settings, then Advanced), then right-click a person, channel or server and press Copy ID.
Mentions work too. If a variable holds <@136327647792726016> or <#879733469452836864>, DogeBot takes the ID out of it for you.

Which variables can be pointed?

Discord objects are different. The brackets go straight after the object name, before the dot:{Channel[879733469452836864].name} works.{Channel.name[879733469452836864]} does not work.See Discord objects.

Your own variables

The same trick works for your own User variables. This is how you show someone else’s coins:
And to change someone else’s value, use the Whose variable box in the Save a value or Do the maths block. See Use your variables in blocks.

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.

If it doesn’t work