src-embeds

1.0.3 • Public • Published

src-embeds

NPM version NPM download

NPM Banner

📂 | 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

Package Sidebar

Install

npm i src-embeds

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

3.81 kB

Total Files

3

Last publish

Collaborators

  • madnessik