Placeholder reference
Placeholders are replaced with real values when a message is sent. They are written in curly braces, for example {user} or {server}.
Setup
- Click into a text field of a message, embed or custom command.
- Type
{. A list shows the placeholders that are available in this field. Keep typing to filter it and pick an entry. - Placeholders are highlighted in the field. Check the result with Preview.
Which placeholders exist depends on the field and the event. Several names can stand for the same value, for example {user.name}, {user_name} and {username}. Placeholders that a field does not support are not replaced. Type @ or # instead to pick a role or channel.
Common placeholders
These names are used in many modules. The exact list in a field can differ, so always check the { list.
| Placeholder | Meaning |
|---|---|
{user} |
Mention of the member (in most modules) |
{user.name} |
Name of the member |
{user.id} |
ID of the member |
{server} or {server.name} |
Server name |
{server.id} |
Server ID |
{member.count} |
Number of members |
{channel}, {channel.name}, {channel.id} |
Channel mention, name and ID where a channel is part of the event |
In Logs the names differ: {user} is the name, {user_mention} the mention and {user_id} the ID. Do not assume a placeholder works the same way in another module.
Examples by module
| Module | Typical placeholders |
|---|---|
| Level System | {user}, {user.name}, {level}, {xp}, {old_level}, {new_level}, {role.reward}, {server} |
| Join / Leave | {user}, {user.name}, {user.id}, {server}, {member.count}, {boost} |
| Autoresponder | {user}, {channel}, {server}, {member.count}, {trigger}, {message_content} |
| Custom Commands | {user}, {user.tag}, {command.name}, {channel}, {server} |
| Giveaway | {prize}, {winners}, {host}, {entries}, {end_time}, {duration} |
| Ticket Support | {ticket.number}, {ticket.category}, {user.mention}, {server}, {closed_by.mention} |
| Counting | {user}, {expected}, {count}, {highest}, {action_text} |
| Starboard | {user}, {channel_mention}, {star_count}, {emoji}, {message_url} |
| Achievements | {user_name}, {achievement_name}, {tier_name}, {tier_number}, {progress_percent} |
| Birthday | {user}, {user.name}, {age}, {date}, {server} |
| Social Alerts | {username}, {title}, {url}, {thumbnail}, {type}, {server} (depending on the platform) |
| Free Games | {title}, {url}, {platform}, {price}, {original_price}, {discount}, {ends} |
| Interaction Builder | {user}, {server}, {channel}, {field_0} to {field_4} (answers of a form) |
Forms in Ticket Support and the Interaction Builder additionally offer the answers of their form fields, for example {field_0}.
Conditional text
The Level System supports a block that is only shown when a role reward was earned:
{level_role: You gained the role {role.reward}!}
Troubleshooting
- The placeholder is not replaced: Check the spelling and use the
{list of the field you are editing. - A value is empty: The event has no such value, for example
{role.reward}when no role reward was earned.