easyembeds.js
v0.0.3
Published
A module that will prevent you from writing line-by-line embed codes
Downloads
82
Maintainers
Readme
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