1.0.3 • Published 3 years ago

src-embeds v1.0.3

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

📂 | Installation

npm i src-embeds

📜 | Setup

const Discord = require('discord.js');
const embeds = require('src-embeds');

📜 | Documentation

embed(title, description, footer, color, timestamp);

  • title -> The title of the embed String
  • description -> The description of the embed String
  • footer -> The footer of the embed String
  • color -> The color of the embed String
  • timestamp -> The timestamp of the embed Boolean

✍ | Example Usage

Without Fields

const Discord = require('discord.js');
const EmbedMaker = require('src-embeds');
const client = new Discord.Client();
client.embed = new EmbedMaker();

client.on('message', async message => {
    const myembed = new client.embed.make("This is my embed!", "This is my description!", "This is the footer", "#ffffff", true);
    message.channel.send({embed: myembed});
});

With Fields

const Discord = require('discord.js');
const EmbedMaker = require('src-embeds');
const client = new Discord.Client();
client.embed = new EmbedMaker();

client.on('message', async message => {
    const myembed = new client.embed.make("This is my embed!", "This is my description!", "This is the footer", "#ffffff", true).addField("This is the field name", "This is the field description", true);
    message.channel.send({embed: myembed});
});

👥 | Contact