Embedified
Extremely lightweight NPM package which allows you to easily create embeds
Using Discord.js
const { EmbedBuilder } = require('embedified');
client.on('messageCreate', (message) => {
const embed = new EmbedBuilder();
embed.setTitle('Title');
embed.setColor('#2b2d31');
embed.setDescription('Description');
embed.addFields([
{
name: 'Name',
value: 'Description',
inline: true,
},
]);
message.channel.send({ embeds: [embed] });
});
Using Webhooks
const { Webhook } = require('discord-webhook-handler');
const { EmbedBuilder } = require('embedified');
const webhook = new Webhook('YOUR_WEBHOOK_URL');
const embed = new EmbedBuilder();
embed.setTitle('Title');
embed.setColor('#2b2d31');
embed.setDescription('Description');
embed.addFields([
{
name: 'Name',
value: 'Description',
inline: true,
},
]);
webhook.send({ embeds: [embed.toJSON()] });