Template variables

Dynamic placeholders for visual commands and events.

Template variables insert dynamic content into visual command and event responses. Wrap them in curly braces.

User & server

VariableDescription
{user}@mention the triggering user
{user.name}Username (plain text)
{user.id}Discord user ID
{server}Server name
{server.members}Member count
{channel}Current channel name
{channel.id}Current channel ID

Bot

VariableDescription
{bot.name}Bot username
{bot.prefix}Configured prefix (e.g. !)
{bot.latency}WebSocket ping in ms
{bot.uptime}Human-readable uptime

Input & settings

VariableDescription
{option:name}Value of a slash command option
{setting:key}Per-guild setting value
{store:key}Value from the KV store

Utilities

VariableDescription
{random:a,b,c}Random pick from a comma-separated list
{count:members}Server member count
{timestamp}Current Unix timestamp
{timestamp:iso}Current time as ISO 8601

Template variables work in all visual actions — commands and events alike.