Message variables
The list of variables you can insert into welcome, level and ticket messages and into your custom commands.
On this page
Where to use them List of variables MemberServerChannelLevels and economyInvitesRobert linksMiscellaneous Good to know FormattingA variable is a word in curly braces that Robert replaces when it sends the message. Write Welcome to {server}, {user.mention}! and each new member will read “Welcome to The Gang, @Lina!”.
Where to use them
Variables work in every message field of the dashboard: welcome and goodbye messages, level-up announcements, the ticket opening message, auto-responses, custom commands, and in every part of the embed composer (title, description, fields, footer).
Below each message field, a bar offers the most common variables; the all variables… button shows the full list. One click inserts the variable at the cursor, and the preview replaces it with an example.
Mind the spelling
Variables are written in lower case, with no spaces, exactly as in the tables below. An unknown or misspelt variable is not replaced: it appears as it is in the preview, which lets you spot it before saving.
List of variables
Member
| Variable | Replaced by | Example |
|---|---|---|
{user} |
Member's username and tag | Lina |
{user.mention} |
Member mention | @Lina |
{user.name} |
Display name | Lina |
{user.id} |
ID | 123456789012345678 |
{user.avatar} |
Avatar link | https://cdn.discordapp.com/… |
{user.created} |
Account creation date | 12/03/2021 |
{user.joined} |
Date they joined the server | 30/09/2026 |
{user.roles} |
Number of roles | 4 |
Server
| Variable | Replaced by | Example |
|---|---|---|
{server} |
Server name | The Hangout |
{server.id} |
Server ID | 987654321098765432 |
{server.icon} |
Icon link | https://cdn.discordapp.com/… |
{member_count} |
Member count | 1,284 |
{member_count.ordinal} |
Join position | 1,284th |
{boosts} |
Number of boosts | 14 |
Channel
| Variable | Replaced by | Example |
|---|---|---|
{channel} |
Channel mention | #general |
{channel.name} |
Channel name | general |
Levels and economy
| Variable | Replaced by | Example |
|---|---|---|
{level} |
Level reached | 12 |
{xp} |
Total XP | 8,420 |
{rank} |
Leaderboard position | 3 |
{balance} |
Coin balance | 1,250 |
{currency} |
Currency name | coins |
Invites
| Variable | Replaced by | Example |
|---|---|---|
{inviter} |
Inviter's name | Marc |
{inviter.mention} |
Inviter mention | @Marc |
{inviter.invites} |
Inviter's invite count | 8 |
{invite.code} |
Invite code used | abcDEF |
Robert links
| Variable | Replaced by | Example |
|---|---|---|
{robert.site} |
Robert's website | https://…/en/ |
{robert.dashboard} |
This server's dashboard | https://…/app/#/g/… |
{robert.docs} |
Documentation | https://…/en/docs/ |
{robert.pricing} |
Plans and pricing | https://…/en/pricing/ |
{robert.invite} |
Robert's invite page | https://…/en/invite/ |
Miscellaneous
| Variable | Replaced by | Example |
|---|---|---|
{date} |
Today's date | 30/09/2026 |
{time} |
Time | 21:04 |
{random:a|b|c} |
Random choice | b |
{choose:1-100} |
Random number | 42 |
{args} |
Custom command arguments | … |
Good to know
- Mention or name?
{user.mention}notifies the member;{user.name}shows their name without notifying them. In an embed title or on a welcome card, mentions are not displayed: use{user.name}. - Join position:
{member_count.ordinal}gives the member's position with its ordinal suffix, handy for “You are our 1,284th member”. - Random choice:
{random:Hi|Welcome|Hello}picks one of the options separated by a vertical bar.{choose:1-100}picks a number between the two bounds. - Context-dependent variables: level variables (
{level},{xp},{rank}) only make sense in level-related messages, invite variables ({inviter},{invite.code}) in welcome messages with invite tracking enabled, and{args}in custom commands. - Links to Robert:
{robert.site},{robert.dashboard}(this server's dashboard),{robert.docs},{robert.pricing}and{robert.invite}always point to the right page, in the server's language. Use them rather than pasting the address: they follow the site if its address changes. - Setting-specific variables: a few fields have variables of their own, shown in their default template. For example
{action}and{reason}in the Moderation module's sanction message, or{number}in ticket channel names.
Formatting
Messages accept Discord's Markdown formatting: **bold**, *italic*, __underline__, `code`. To mention a specific channel or role, select it in the module's settings whenever possible: the link will stay valid even if you rename it.
Spotted a mistake? Got a question? Let us know on the support server.