🟢Embed

Below is an example of the simplified embed creation system:

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:

Last updated