src-embeds
v1.0.3
Published
An easy way to make embeds using discord.js
Downloads
4
Maintainers
Readme
📂 | 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 Stringdescription
-> The description of the embed Stringfooter
-> The footer of the embed Stringcolor
-> The color of the embed Stringtimestamp
-> 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});
});