Skip to main content

Core Structure

greed uses a specialized token-based system for building embeds. Each component is defined within braces {} and follows a key: value pattern. The syntax for a standard parameter is:
  • { - Opens the parameter block.
  • key: - Identifies the property (e.g., title, description).
  • value - The content or configuration for that property.
  • } - Closes the parameter block.

Block Separators

To organize your script or separate individual embed properties, you can use $v. In greed’s engine, this acts as a newline separator, allowing the parser to clearly distinguish between different nodes.
Example
{title: Hello World}$v{description: This is a custom embed!}
Image2[1]

Available Parameters

Most parameters take a simple text or URL value.
KeyDescriptionExample
contentPlain text message outside the embed.{content: Hello {user}}
titleThe main title of the embed.{title: Server News}
descriptionThe body text of the embed.{description: Join our Discord!}
colorThe sidebar color (Hex or Decimal).{color: #ccccff}
urlMakes the title a clickable link.{url: https://greed.best}
imageA large image at the bottom.{image: https://.../img.png}
thumbnailA small image in the top right.{thumbnail: https://.../icon.png}
timestampAdds the current time to the footer.{timestamp}

Advanced Parameters

Some parameters support multiple values separated by &&.
Set the name, icon, and an optional link for the author section.
  • Syntax: {author: name && icon && url}
  • Example: {author: {user.name} && {user.avatar}}
Image31[1]
Add organized rows of data. You can include inline at the end to place fields side-by-side.
  • Syntax: {field: name && value && inline}
  • Example: {field: User ID && {user.id} && inline}
    Image9[1]
You can also use the plural {fields: ...} node to define multiple fields at once: {fields: name: F1 && value: V1 && name: F2 && value: V2}
Add interactive buttons to your message.
  • Types: Blurple, Green, Grey, Red, or a direct link.
  • Syntax: {button: label && style_or_url && emoji && disabled}
  • Example: {button: Support Shell && https://discord.gg/greed && emoji: 🛠️}
    Image7[1]

Mixing Text and Embeds

By default, greed attempts to identify if you are sending a raw text message or an embed script. If you want to ensure the bot parses your script correctly—especially when including variables—begin your message with {embed}$v.
Template
{embed}$v{title: Welcome!}$v{description: Glad you joined us, {user.mention}!}
Image4[3]

Tips & Tricks

  • New Lines: You can create real new lines in your {description} by simply pressing Enter within the script.
  • Multiple Embeds: Want to send more than one embed in a single message? Just start a new {embed} block!
  • Zero-Width Spaces: If you need an empty field or title, you can use a zero-width space character.