npm.io
1.0.3 • Published 5 years ago

src-embeds

Licence
MIT
Version
1.0.3
Deps
1
Size
4 kB
Vulns
0
Weekly
0

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

Keywords