0.0.3 • Published 2 years ago

easyembeds.js v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

EasyEmbeds.js

How to use EasyEmbeds.js

const { Client } = require("discord.js");
const client = new Client();
const { SendEmbed } = require("easyembeds.js");

For the messageCreate event

client.on("messageCreate", async(message) => {
  if(message.content.toLowerCase() === "!send-embed") {
    await SendEmbed(message, { description: "this is a message :)", color: "Yellow" })
  }
});

For the interactionCreate event

client.on("interactionCreate", async(interaction) => {
  if(interaction.commandName === "send-embed") {
    await SendEmbed(interaction, { description: "this is a interaction :)", color: "Pink" })
  }
});

Supported colors

  • Red
  • Green
  • Blue
  • Yellow
  • Bluepurple
  • Pink
  • White
  • Black

Support Servers

https://discord.gg/JXttv6Z64c, https://discord.gg/BeBZX9bT9N

0.0.3

2 years ago

0.0.1

2 years ago