Variables Reference
You can use these dynamic placeholders and styling tags inside your custom commands, welcome messages, and embed templates. SafeBot automatically parses them when rendering responses.
User Variables
| Variable | Description |
|---|---|
| {user} | Mentions the user (e.g. @Username) |
| {username} | Displays the plain text username |
| {user_id} | Returns the user's Discord ID |
| {user_tag} | Returns user discriminator tag |
| {user_color} | Returns the user's role color hex |
| {user_joined_at} | Server join date (YYYY-MM-DD) |
| {user_created_at} | Account creation date (YYYY-MM-DD) |
| {user_avatar} | Direct URL to the user's avatar |
| {user_toprole} | Name of the user's highest role |
Server Variables
| Variable | Description |
|---|---|
| {server} / {guild_name} | Displays the server's name |
| {server_id} | Returns the server's ID |
| {server_owner} | Mentions the server owner |
| {member_count} | Total server member count |
| {server_boosts} | Current server boost count |
| {server_created_at} | Server creation date |
Stats, Arguments & Time
| Variable | Description |
|---|---|
| {voice_time} | User's tracked voice activity duration |
| {args} | Full string of command arguments |
| {arg_count} | Total number of arguments provided |
| {arg1} to {arg9} | Specific indexed arguments |
| {date} / {time} | Current system date and time |
| {year}, {month}, {day} | Specific date parts |
| {timestamp} | Discord dynamic timestamp tag |
Embed & Message Styling Tags
You can include these tags directly inside your text template to customize embeds and message visibility:
| Tag Format | Description |
|---|---|
| {title:Your Title Here} | Adds an embed title to the message response |
| {color:#5865F2} | Sets a custom hex color for the embed border |
| {ephemeral} | Makes the response visible only to the command runner |