Discord bot
Embeds & messages
One text field becomes a full Discord message: text, up to 10 embeds, link buttons, role buttons and role menus. The same script works in welcome messages, level-ups, stream alerts, tags, scheduled posts and /embed.
The script#
Parts are written as {name: value} and joined with $v. Values with several parts split them with &&. Text without {embed} or $v is sent as a plain message.
A welcome message
{content: Hey {user.mention}!}$v
{embed}$v
{title: Welcome to {guild.name} 👋}$v
{description: You're our **{guild.count.ordinal}** member.}$v
{thumbnail: {user.avatar}}$v
{color: #8b5cf6}$v
{field: Rules && Read <#123456789012345678> && inline}$v
{footer: {guild.name} && {guild.icon}}$v
{timestamp}Tags
| {content: …} | text | The message text above the embeds (mentions in it ping). |
| {embed} | Starts an embed. A second {embed} starts another one (10 at most). | |
| {title: …} | text | Embed title. Add {url: https://…} to make it a link. |
| {description: …} | text | Main text. **bold**, *italic*, links and new lines work. |
| {color: #8b5cf6} | hex | The bar on the left. |
| {author: name && icon && url} | text | A small line above the title. |
| {thumbnail: url} / {image: url} | url | Small picture on the right / big picture at the bottom. |
| {field: name && value && inline} | text | Up to 25 fields; inline puts them side by side. |
| {footer: text && icon} | text | The small line at the bottom. |
| {timestamp} / {timestamp: 2026-12-24 18:00} | Now, or a time you pick (UTC). | |
| {button: Label && https://… && emoji} | A link button (5 per row, 25 per message). | |
| {button: role && <role id> && Label && emoji && green} | Gives or takes a role when pressed. Colours: blue, grey, green, red. | |
| {select: Placeholder && <role id>:Label:emoji && …} | A role menu: members pick any of up to 25 roles (2 menus per message). | |
| {random: hi | hey | hello} | Picks one each time. |
Safe roles only
Role buttons and menus refuse roles with moderator permissions (Administrator, Manage Server, Ban Members and the like) and roles above the bot, so a button can't hand out power.Role buttons and a menu#
Script
{embed}$v
{title: Pick your roles}$v
{description: Tap a button to get or drop a role.}$v
{button: role && 123456789012345678 && Gamer && 🎮 && green}$v
{button: role && 223456789012345678 && Artist && 🎨}$v
{select: Notifications && 323456789012345678:Streams:🔴 && 423456789012345678:Events:📅}Variables#
Variables are filled in when the message is sent. Some only exist where they make sense (levels in level-up messages, stream details in alerts).
| {user} | Mention, same as {user.mention} |
| {user.mention} | @specter |
| {user.name} | specter |
| {user.display_name} | Specter |
| {user.id} | 123456789012345678 |
| {user.avatar} | Avatar URL |
| {user.created_at} | Account age (Discord timestamp) |
| {user.joined_at} | When they joined (Discord timestamp) |
| {guild.name} | Server name |
| {guild.id} | Server ID |
| {guild.count} | 1,234 |
| {guild.count.ordinal} | 1,234th |
| {guild.icon} | Server icon URL |
| {guild.boost_count} | Boosts |
| {guild.boost_tier} | Boost level |
| {user.tag} | specter |
| {user.nick} | Nickname on the server |
| {user.roles} | How many roles they have |
| {guild.owner} | Owner mention |
| {guild.created_at} | When the server was made |
| {guild.banner} | Server banner URL |
| {date.long} | Thursday, 24 December 2026 |
| {unix} | Seconds since 1970 (for <t:…>) |
| {random: a | b | c} | One of them, picked at random |
| {channel} | #channel mention |
| {channel.name} | channel |
| {date} | Today's date |
| {time} | Discord time, everyone's own zone |
| {level} | New level (level-up message) |
| {level.previous} | Level before |
| {xp} | Total XP |
| {streamer} | Streamer (stream alerts) |
| {stream.title} | Stream title |
| {stream.game} | Category / game |
| {stream.url} | Stream link |
| {stream.viewers} | Viewers |
| {stream.thumbnail} | Stream preview image |
| {stream.platform} | Twitch / Kick |
| {game} | Game (rank-up) |
| {rank} | New rank (rank-up) |
| {rank.previous} | Rank before (rank-up) |
The embed builder#
- Panel → Embeds has a visual builder with a live preview drawn by the same code the bot uses, so what you see is what gets sent.
- Save an embed under a name, then send it with
/embed sendor the prefix command,template name. - Import an existing message: paste its link and the builder turns it into a script you can edit.
- Edit a message the bot already sent without reposting it, from the builder or with
/embed edit.
In Discord, /embed does the same: create, send, edit, copy and list saved embeds. See /embed.