Reference
Embed scripts
The syntax chæ1 uses for custom messages, tags and announcements, with every placeholder.
Plain text or an embed
Any custom message can be plain text:
Welcome to {guild.name}, {user.mention}!
Or an embed, written as blocks joined with $v:
{embed}$v{color: #cee5d5}$v{title: Welcome!}$v{description: Hey {user.mention}, glad you're here.}$v{thumbnail: {user.display_avatar}}
Blocks
| Block | Does |
|---|---|
{embed} |
Starts an embed (put it first) |
{color: #hex} |
The stripe on the left |
{title: text} |
Title |
{description: text} |
Main text |
{thumbnail: url} · {image: url} |
Small picture top right · big picture at the bottom |
{author: name && icon && url} |
Line above the title |
{footer: text && icon} |
Small text at the bottom |
{field: name && value} |
A field. Add && inline to put fields side by side |
{button: Link && Label && https://…} |
A link button |
{message: text} |
Plain text sent along with the embed |
{timestamp} |
Shows the time at the bottom |
Use \n for a new line inside a value.
Placeholders
| Placeholder | Becomes |
|---|---|
{user.mention} · {user.name} |
The member |
{user.avatar} · {user.display_avatar} |
Their avatar |
{user.top_role} · {user.color} |
Their highest role and its color |
{guild.name} · {guild.count} |
The server and its member count |
{guild.icon} · {guild.boost_count} |
Server icon and boosts |
{channel.mention} |
The channel |
{date.now} · {time.now} · {date.utc_timestamp} |
Date and time |
{level.new_rank} · {level.user_xp} |
Level-up messages |
{boost.count} |
Boost messages |
{vanity.url} |
Vanity messages |
{reason} · {duration} · {moderator} · {moderator.mention} |
Moderation messages |
{case.number} · {case.type} · {case.icon} · {case.color} · {case.expires} |
Moderation messages |
Where you can use them
| Event | Set with |
|---|---|
welcome · leave · boost |
!setwelcome, !setleave, !setboost or !script set |
levelup |
!xpconfig levelmsg or !script set levelup |
vanitygrant · vanityrevoke |
!script set |
mod_dm_warn, mod_dm_kick, mod_dm_ban, mod_dm_softban, mod_dm_mute, mod_dm_unmute, mod_dm_jail, mod_dm_unjail, mod_dm_unban |
!script set |
mod_log |
!script set mod_log |
Tags, announcements and reaction role menus also accept scripts.