☰ Embed Builder
➕ Create and customize Discord embed with a simple and intuitive builder.
js
const embed = utility.builder({
// 🏷️ Title (max 256 chars)
title: "Embed title",
// 📝 Description (max 4096 chars)
description: "Embed description",
// 🎨 Color
// Supports: "default", "success", "error" OR hex (#ffffff)
color: "default",
// 👤 Author (top of embed)
author: "Author name",
authorIcon: "https://image.url", // must be valid URL
// 🔻 Footer (bottom of embed)
footer: "Footer text",
footerIcon: "https://image.url", // must be valid URL
// 🖼️ Thumbnail (small image on right)
thumbnail: "https://image.url",
// 🖼️ Image (big image under description)
image: "https://image.url",
// ⏱️ Timestamp (current time)
timestamp: true,
// 📊 Fields (max 25)
fields: [
{
name: "Field name (max 256 chars)",
value: "Field value (max 1024 chars)",
inline: true // true = side by side
}
],
// 🔘 Buttons (max 5 per row, auto multiple rows)
buttons: [
{
// Required if no URL
customId: "button_id",
// OR use URL for link button
// url: "https://example.com",
label: "Click me",
emoji: "🔥",
// Styles: primary, secondary, success, danger
style: "primary",
disabled: false
}
],
// 🔄 Variables (text replacements)
variables: [
...utility.userVariables(mi.member), // user variables
...utility.botVariables(bot), // bot variables
...utility.serverVariables(mi.guild), // server variables
// Custom variable
{
searchFor: /{test-message}/g,
replaceWith: "Hello World"
}
]
});
// With message content
send(type, mi, {
content: "Optional message here",
embeds: embed.embeds,
components: embed.components
});
// Without content
send(type, mi, embed)