> For the complete documentation index, see [llms.txt](https://camposcodes.gitbook.io/easediscordjs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://camposcodes.gitbook.io/easediscordjs/integrations/components/embed.md).

# Embed

Below is an example of the simplified embed creation system:

```javascript
import { ApplicationCommandType } from "discord.js";
import { CreateEmbed } from "ease-discord-js";

export default {
    name: "test",
    description: "command to test the library",
    type: ApplicationCommandType.ChatInput,

    run: async(client, interaction) => {

        const embed = new CreateEmbed({
            author: { name: interaction.user.tag, iconURL: interaction.user.displayAvatarURL(), url: "https://github.com/KevenCampos/" },
            title: "Hello World!",
            description: "This is a test command",
            color: "RANDOM",
            timestamp: true,
            footer: { text: "Test Command" },
            thumbnail: interaction.user.displayAvatarURL(),
            fields: [
                { name: "Field 1", value: "Value 1", inline: true },
                { name: "Field 2", value: "Value 2", inline: true },
            ]
        })

        return interaction.reply({embeds: [embed]});
    }
}
```

Result:

<figure><img src="https://cdn.discordapp.com/attachments/1225958170732793898/1238315280317550633/image.png?ex=663f7f39&#x26;is=663e2db9&#x26;hm=d271c5218c230fc639b54376301d74d75956c342d565d6e70a940017dec22a5f&#x26;" alt=""><figcaption><p>CreateEmbed from EaseDiscordJS</p></figcaption></figure>
