Docs/Features

Scripts & embeds

Write messages with variables, embeds and Components V2.

1 min read

Where scripts work

Anywhere felony asks for a message: ,ce, saved embeds, welcome, goodbye and boost messages, sticky messages, autoresponders, timers and warrant's thank-yous.

,welcome add #welcome Welcome {user.mention} to {guild.name}!
,ce {title: hi}{description: hello {user.mention}}
The quickest way to write one is the embed builder. Copy the script, or copy its link: felony reads a builder link anywhere it reads a script.

Variables

{user.mention}, {user.name}, {user.avatar}, {guild.name}, {guild.count} and more. The embed builder lists them all with examples.

Classic embeds

{title: …} {description: …}The heading and body.
{author: …} {footer: …} {timestamp}The small lines above and below.
{field: name && value}A field. Add && inline to sit them side by side.
{color: #e8839b}The edge colour.
{image: url} {thumbnail: url}A big image, or a small one in the corner.
{button: label && url && emoji}A link button. Up to five.
{content: …}Plain text above the embed.

Start a new block with $v.

Components V2

Start a script with {cv2} to build with Discord's newer layout. Pieces are separated by $v, and a container holds others joined with &&:

{cv2}$v{container: accent: #e8839b && {text: ### welcome} && {separator} && {gallery: https://…}}
{text: …}A block of markdown.
{section: text && thumbnail: url}Text with an image, or button: label && url, beside it.
{gallery: url && url}Up to 10 images.
{separator}A line. large for more room, space for no line.
{buttons: {button: …} && {button: …}}A row of link buttons.
{file: url}An attached file.
{container: accent: #hex && spoiler && …}A box around other pieces.