Creating Embeds

Setting Up

Let's create our first embed! Navigate to the bot's file directory (where the JAR file, settings.yml, and other Embeddy files are) and open the embeds folder. If the folder does not exist, you can manually create it.

Create a new YML file with the ID/name of your embed. For example, if I wanted to create an embed called test, I would create a file called test.yml.

Although .yml and .yaml are both supported extensions for YAML, Embeddy only recognizes files with the .yml extension.

Configuring the Embed

Now for the important part- customizing the elements of your embed. The following configuration shows and explains how you can customize every single component of an embed. If you do not wish to use an option, you may remove the line completely.

# The color, must be a HEX code prefixed with with the hashtag symbol.
color: "#00FFB2"

# The author component (goes above the title)- 3 possible formats:
# Format 1 - Text Only
author: "Demeng" 
# Format 2 - Clickable Text with Link (text;;link)
author: "Demeng;;https://demeng.dev/" 
# Format 3 - Text, Link, Icon (text;;link;;iconUrl)
author: "Demeng;;https://demeng.dev/;;https://demeng.dev/branding/icon.png"

# The embed title- 2 possible formats:
# Format 1 - Text Only
title: "Example Embed"
# Format 2 - Clickable Text with Link (text;;link)
title: "Example Embed;;https://demeng.dev/embeddy"

# The description, the main content of the embed.
description: "This is some random text."
# Alternative format - Multiple Lines
description: |
  Line 1
  Line 2
  Line 3

# The embed footer- 2 possible formats:
# Format 1 - Text Only
footer: "Made with Embeddy"
# Format 2 - Text and Icon (text;;iconUrl)
footer: "Made with Embeddy;;https://demeng.dev/branding/embeddy/icon.png"

# The embed thumbnail, displayed as a square at the top right corner.
thumbnail: "https://demeng.dev/branding/embeddy/logo.png"

# The image displayed at the bottom, after the main content.
image: "https://demeng.dev/branding/cover.png"

# The timestamp displayed in the footer.
# Use -1 for current time, or unix epoch time in milliseconds for custom.
timestamp: -1

# Embed fields. This is the config section containing all the fields.
fields:
  # The field number (doesn't really matter, just no duplicates).
  1:
    # The field title.
    name: "Field 1"
    # The field description.
    value: "Some random text."
    # If the field should be inlined with other fields.
    inline: false
  # Second field.
  2:
    name: "Field 2"
    value: |
      More random text.
      But this one is on 2 lines!
    inline: false
  # Third field.
  3:
    name: "Last Field"
    value: "I'm the final random text :)"
    inline: false

This file shows multiple lines with the same key (eg. 3 different lines for the "author" option). This is for demonstration purposes only- you should only use 1 format for each option and never have duplicates of the same option.

Last updated