Variables
Below is a list of variables you can use in your Custom Commands to make using your bot a bit easier.
Variable
Description
Example
{user}
Mention the user who triggered the command
"Welcome to the server {user}"
{server}
Get the name of the Discord Server the command was triggered in
"Welcome to {server}"
{channel}
Get the name of the channel the command was triggered in
"This channel is named {channel}"
{^role}
Mention an entire role by name, replace 'role' in the variable with the target role
"Hello {^members}"
{#channel}
Mention a channel by name, replace 'channel' in the variable with the channels name
"Please send your suggestions to {#suggestions}"
{server_members}
Return the member count of the current guild(server)
"This server has {server_members} very cool members!"
{server_icon}
Return the icon of the current guild(server)
"[Click here]({server_icon}) to see our server's icon!"
{server_owner}
Return the user who owns the guild(server)
"{server_owner} is our amazing, super awesome, handsome, swagtastic, funny, and all mighty owner!!!"
{user_icon}
Return the Icon of the user who triggered the command
"Lost your icon image? Here is a link to it! {user_icon}"
{random[min,max]}
Return a random number between a min and a max, replace min and max with two numbers
"You rolled {random[1,20]} did you win?"
{member_mention}
Returns the user who was mentioned in the command trigger. Note: this will work with the Action User on the command builder
"You hugged {member_mention}!"
{user_name}
Get the username of the specified user
"{user_name} just hopped into the server!"
{user_id}
Get the ID of the specified user
"Here is the user's ID : {user_id}"
{user_tag}
Get the specified the user's tag (username#1234)
"{user_tag} has pulled a ticket!"
{user_discriminator}
Get the discriminator of the specified user, this the 4 digit number at the end oft he username (#1234)
"This user's discriminator is {user_discriminator}"
{user_createdAt}
Get when the specified user created their account
"The account was made: {user_createdAt}"
{user_joined}
Get when the specified user joined the server
"You joined the server {user_joined}"
{user_displayName}
Get the specified user's display name (nickname) for server
"User's nickname is {user_displayName}"
{currency_balance}
Get the sepcified user's economy balance
"Your current balance: {currency_balance}"
​
Copy link