Skip to main content
Righteous

The one embed-code language (tags, variables, buttons and ++delete) used in welcome messages, tickets, level-ups and everywhere else Righteous asks for one.

An embed code is plain text with {tag: value} chunks in it, separated by $p. Every surface that takes one speaks this same language: see where a code works. To try one without saving it, use the embed builder (a live preview that sends nothing) or ,customembed (,ce, Manage Messages). Each surface has its own permission, usually Manage Server.

Post a code and see what you get

Text outside any tag is plain message text. Add tags and the same command posts an embed. Order doesn't matter: tags are found by name.

Syntax

,customembed <code>

Example

,customembed {title: Announcement}$p{description: Doors open at 8.}$p{color: #fb4868}
RighteousAPP

Announcement

Doors open at 8.

A title, a line of body text, and the colored stripe down the left. Open in the builder

,copyembed <message link> turns an existing message back into its code. Right-click it, then Apps → Copy Embed Code, does the same. It also copies a Components V2 card (as a {v2:} code) and a forwarded message. A reply button keeps its reply only if it is one of Righteous's own reply buttons, the message is from your own server and the reply is still there (a now-playing reply lasts 1 hour). Anything a code can't hold is listed under the copy.

Build the embed out of tags

TagSetsTakes
{title: text}
the heading
text
{description: text}
the body
text
{color: value}
the left stripe
a hex color, or random
{url: link}
makes the title a link
an http(s) link
{thumbnail: link}
the small image, top right
an image link
{image: link}
the large image, bottom
an image link
{author: name && icon && link}
the line above the title
name required
{footer: text && icon}
the line at the bottom
text required
{field: name && value}
a labelled block; add && inline to sit it beside the next
both required
{timestamp:}
a time on the footer
nothing
{content: text}
text outside the embed (loose text does the same)
up to 2,000 characters
{button: ...}
a button under the message
  • A second {title:} is ignored; several {content:} tags add up in order.
  • Multi-part tags split on &&, so a name, footer or label can't contain one. {field:} keeps everything after the first && as its value.
  • A chunk that looks like a tag but isn't ({banner: x}) is dropped silently, so a misspelling gives you nothing, not an error. An unreadable {color:} falls back to black.

Fill in names and numbers with variables

Variables go inside a tag and fill in when the message sends, like {description: {user.mention} is member number {guild.membercount}.}. Every token is on the variables page, or run ,customembed variables. Which ones fill in depends on where the code runs:

TokensWork
{user.*}, {guild.*}, {channel.name}, {color.random}
anywhere
{ticket.*}
only in a ticket greeting
{level}, {xp.into}, {rank}, {reward}
only in a ,levels embeds message
{track.*}, {album.*}, {artist.*}, {spotify.*}, Rotation ratings
where the member has a linked Last.fm account (ratings also need a linked Rotation)

An unknown token or a misspelling ({usr}) renders as its own name, braces dropped. That's why {ticket.id} on the ticket panel shows the bare words ticket.id. Only the Last.fm and Rotation tokens render as nothing, for a member with no account or no scrobble.

Add buttons

Syntax

,customembed <code>

Example

,customembed {description: Read these first.}$p{button: Rules && https://example.com/rules}
RighteousAPP

Read these first.

Buttons and menus (illustration, not clickable):
Rules
A link button under the message. Open in the builder
PartMeansExample
label
the button text
Rules
link
where it sends people
https://example.com
emoji
unicode, or one of your server's as <:name:id>
🎧
color
link, blue, green, grey or red
green
disabled
greys it out
disabled

Parts are matched by kind, in any order. A label or an emoji is required. You get up to 25 buttons, five to a row, and one the parser can't build is dropped while the rest sends. Link buttons open their link. A colored button does nothing on its own, unless you give it a private reply.

Answer a button with a private reply

End a colored button with && reply: and a whole embed code, and whoever presses it gets that code as a message only they can see.

Syntax

,customembed <code>

Example

,customembed {title: Rules}$p{button: blue && Read me && reply: {title: Hi {user.name}}$p{description: Be kind and keep chat on topic.}}
RighteousAPP

Rules

Buttons (illustration; the reply buttons show their reply when pressed):
Press Read me: the reply appears under the message, and only the person who pressed it sees it in Discord. Open in the builder
  • Where it works: welcome, goodbye, boost and unboost messages, join DMs, sticky messages, ,pages (button mode only: a page set flipped with reactions can't show them), ,customembed and ,editembed, ticket greetings and the ticket panel, and now-playing layouts. Everywhere else the bot removes the reply and the button does nothing, ,webhooks send included.
  • On those messages the reply lasts as long as the message does, restarts included, and it is filled in for whoever presses it: {user.name} is the person who pressed, and Last.fm variables are theirs. A now-playing reply is different: a snapshot of the song when the card posted, kept for 1 hour.
  • Ticket variables ({ticket.*}) don't work inside a reply.
  • A server can keep 500 replies. Past that, a save that adds a new one is refused; the ones you have keep working. The same reply on many messages counts once. Custom embeds (,customembed, ,editembed) can use up to 100 of the 500.
  • reply: goes last, up to 5 reply buttons per code, and a link button can't have one.
  • The preview in the builder and in the add commands shows the button, but it only answers once the code is saved.

Change how a variable prints

Wrap a variable's name in a function to change its text: {upper(track.name)}, {lower(user.name)} or {proper(user.plays)}.

FunctionDoesExample
{lower(x)}
lowercases it
{lower(user.name)}
{upper(x)}
uppercases it
{upper(track.name)}
{proper(x)}
adds thousands separators to a number; text such as ? is left alone
{proper(user.plays)}

Syntax

,customembed <code>

Example

,customembed {description: {upper(user.name)} has {proper(user.plays)} scrobbles.}
RighteousAPP

BEGGING has 642,829 scrobbles.

The name in capitals, the count with commas. Open in the builder

They work on Discord and Last.fm variables, in every code. They don't work on ticket ({ticket.*}) or level-up ({level}, {xp.*}) variables, and one function can't wrap another.

Delete the message after a while

++delete is an action, not a tag. It never renders and goes at the very end of the code.

Syntax

,customembed <code> ++delete <seconds>

Example

,customembed {description: Back in five.} ++delete 30

What it takes depends on where you write it:

WhereTakesDefault
,customembed, ,webhooks send, a ticket greeting
whole seconds, 1 to 600
off
,welcomemessage add and its goodbye, boost and unboost twins
whole seconds, 1 to 60
off
,levels embeds
a duration up to 1h (30s, 5m), or off
off

++delete 30 is an error on the last row, which wants 30s; ++delete 1h is refused on the first.

Put the flag last

Every surface reads ++delete only at the very end of the code. The welcome, goodbye, boost and unboost commands refuse a value they can't read (++delete 1h, or 6O with a letter O) instead of guessing.

Four surfaces ignore the timer (the flag is still stripped): join DMs and trap DMs, because a DM may not have been opened yet, and ,pages and ,editembed, which edit a message that already exists. On server and level-up messages the value is saved as that message's own setting: see server messages.

Switch the whole message to Components V2

{v2:} anywhere renders a Components V2 container instead of an embed. Same $p, variables and buttons, plus three tags:

Syntax

,customembed <code>

Example

,customembed {v2:}$p{title: New here?}$p{gallery: https://example.com/a.png && https://example.com/b.png}$p{separator:}$p{section: Start in the rules channel && https://example.com/icon.png}
TagAdds
{gallery: link && link …}
up to ten images in one grid
{section: text && accessory}
text beside a thumbnail (one image link) or a button, never both
{separator:}
a divider line

Only the first {section:} and one {separator:} render, in a fixed order (text, gallery, section, separator, buttons). Author and footer icons and inline fields are dropped. The text budget is 4,000 characters, against 6,000 for an embed; past it, a send falls back to a classic embed without the gallery, section and separator.

Two places V2 doesn't work

,webhooks send refuses a {v2:} code. In ,pages a {v2:} page saves cleanly into a single-page set, reports success, then never renders. Keep page sets classic.

Know where a code works

WhereSet with
Welcome, goodbye and boost messages, join DMs
Punishment confirmations (Server Premium)
Ticket greetings and panel
Level-up announcements
Sticky messages (Server Premium)
A paginated set of embeds
Trap channel DMs
A one-off webhook message
Your now-playing card (Self Premium)
A one-off post, or editing one you sent

Autoresponders do not take embed codes

,autoresponder replies get variables only. {title: Hi} posts as literal text, and there is no embed or button. ++delete is the one flag they take.

Common issues

Nothing posted. Every tag is misspelled, so the message is empty and Discord won't take it. Try a bare {description: test}.

A tag printed as visible text. You're on a surface that doesn't parse codes, usually the autoresponder.

A word from my code shows up bare. A misspelled token, or one used outside its surface (see the table above). Check the variables page. A token that comes out empty is a Last.fm one: no linked account or nothing scrobbled.

A line like Notice: read this vanished. It looks like a mistyped tag. Wrap it: {content: Notice: read this}.

A {v2:} page saved but the paginator shows the old one. Discord can't turn a classic embed into a V2 container. Put the page back to classic tags.

Nothing here fixed it. The shared common issues page works from the symptom end.