Commands
  • Commands

Embed Variables

Variables you can use in embeds, messages, and invoke templates.

Use these variables anywhere Mist parses a template — stored embeds, createembed, embed create, greet/goodbye messages, moderation invokes, and more. They are replaced with live values when the message is sent.

User variables

{user.*}, {author.*}, and {target.*} all refer to the target user. Available fields:

VariableValue
{user.id}User ID
{user.mention}User mention
{user.name}Username
{user.nickname}Server nickname
{user.tag}Full tag (username#0000 or just username)
{user.avatar}Avatar URL
{user.guild_avatar}Server-specific avatar URL
{user.display_avatar}Display avatar URL
{user.display_name}Server display name
{user.created_at}Account creation date
{user.created_at_timestamp}Account creation timestamp
{user.joined_at}Server join date
{user.joined_at_timestamp}Server join timestamp
{user.boost}Whether the user is boosting (Yes/No)
{user.boost_since}Boost start date
{user.color}Top role color hex
{user.bot}Whether the user is a bot (Yes/No)
{user.top_role}Highest role name
{user.role_list}List of role mentions

Guild variables

VariableValue
{guild.name}Server name
{guild.id}Server ID
{guild.count}Member count
{guild.owner_id}Owner ID
{guild.created_at}Server creation date
{guild.created_at_timestamp}Server creation timestamp
{guild.emoji_count}Emoji count
{guild.role_count}Role count
{guild.boost_count}Boost count
{guild.boost_tier}Boost tier
{guild.icon}Icon URL
{guild.banner}Banner URL
{guild.afk_timeout}AFK timeout in seconds
{guild.preferred_locale}Server locale
{guild.channels_count}Total channel count
{guild.text_channels_count}Text channel count
{guild.voice_channels_count}Voice channel count
{guild.vanity}Vanity invite code

Server shortcuts

{server.*} is a shorter alias for the same server values as {guild.*}:

VariableValue
{server.name}Server name
{server.id}Server ID
{server.icon}Icon URL
{server.members}Member count
{server.bots}Bot count
{server.humans}Human count
{server.roles}Role count
{server.channels}Channel count
{server.boosts}Boost count
{server.boost_tier}Boost tier

Channel variables

VariableValue
{channel.name}Channel name
{channel.id}Channel ID
{channel.mention}Channel mention
{channel.topic}Channel topic
{channel.category_name}Parent category name
{channel.type}Channel type (text, voice, forum, etc.)
{channel.position}Channel position
{channel.slowmode_delay}Slowmode in seconds

Moderator and case variables

VariableValue
{moderator.*}Same fields as {user.*} for the acting moderator
{reason}Case or command reason (invoke templates)
{duration}Punishment duration (invoke templates)
{invite_url}Invite URL: the context invite when supplied, otherwise the server vanity
{id} / {caseId}The moderation case id (invoke templates)

Giveaway variables

VariableValue
{prize}Giveaway prize
{host}Giveaway host
{winners}Winner mention list

Other placeholders

VariableValue
{tag}Custom tag value from the invoking context
{date.now}Current date and time
{date.now_proper}Current date formatted neatly
{date.now_short}Short date
{date.now_shorter}Month and day only
{date.utc_now}Current UTC date and time
{date.utc_timestamp}Current UTC timestamp
{time.now}Current time
{time.now_military}Current time in 24-hour format
{time.utc_now}Current UTC time
{time.utc_now_military}Current UTC time in 24-hour format

Notes

  • Variables are case-sensitive.
  • If a value is missing from the context, the variable is left unchanged.
  • Bare {user}, {server}, {guild}, and {channel} also work, and render the user tag, server name, and channel mention.
  • Context variables only resolve where the flow supplies them: {moderator.*}, {reason}, {duration}, and {id} in moderation invokes, and {prize}, {host}, and {winners} in giveaways.
  • Use the variables command in Discord for quick links to this page and the giveaway reference.
The legacy [user.mention], [server.name], and [channel.id] bracket syntax also works in supported templates.