1.0.1 • Published 12 months ago

embedified v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
12 months ago

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()] });
1.0.1

12 months ago

1.0.0

12 months ago