Embeds

All these functions can be used with messages as interactions.

Use these functions with message functions?

Change interaction to message. For example: interaction.send("Hello!"); then becomes message.send("Hello!");

Embed

const embed = interaction.embed({
  title: "Ping",
  desc: "Pong",
  color: "#0000ff"
}) // All options: title, desc, image, color, footer
interaction.channel.send({ embeds: [embed] })

Success embed

const embed = interaction.embedSuccess("This is a success embed!");
interaction.channel.send({ embeds: [embed] })

Error embed

const embed = interaction.embedError("This is a error embed!");
interaction.channel.send({ embeds: [embed] })

Last updated