🔍 /
🏛️ Classes

🎨 EmbedBuilder

Como obter: `new EmbedBuilder()`

Métodos

AssinaturaParâmetro(s)Descrição
setTitle(v) string Embed title
setDescription(v) string Description
setColor(v) string | number Color. E.g.: "#A9D6FF", "Blurple", 0x5865F2ver embed-color
setURL(v) string Title URL
setTimestamp(v?) string | nil Timestamp. nil = now
setThumbnail(url) string Small image (top-right)
setImage(url) string Large image (bottom)
setAuthor(opts) object { name, url?, iconURL? }
setFooter(opts) object { text, iconURL? }
addFields(...fields) object[] { name, value, inline? } — multiple
setFields(...fields) object[] Replaces all fields

Cores prontas

Veja a lista completa em EmbedColor.

Exemplo de uso

on command("perfil", message, args)
  let user = getUser()
  let embed = EmbedBuilder()
    .setTitle("Perfil de " .. user.username)
    .setDescription("Aqui estão as informações do usuário.")
    .setColor("Blurple")
    .setThumbnail(user.avatar)

  message.reply("", { embeds: [embed] })
end

Funções ou páginas relacionadas