dann-embed

Discord Embed Message Maker

Usage no npm install needed!

<script type="module">
  import dannEmbed from 'https://cdn.skypack.dev/dann-embed';
</script>

README

Easy Embed Maker

๐Ÿงก An easy discord embed message maker for newbies, just a function, try it yourself!

Installation

$ npm install dann-embed

  • Discord.js v13

Quick Example

const { Client, Intents } = require('discord.js');
const client = new Client({ intents: [Intents.FLAGS.GUILDS] });
const Embed = require('dann-embed');

client.on('ready', () => {
  console.log(`Logged in as ${client.user.tag}!`);
});

client.on('messageCreate', async message => {
  if (message.content === '!ping') {
    Embed(message).description("Pong!").send();
  }
});

client.login('token');

Example

Main Function

const Embed = require('dann-embed');

Embed(message); // Object => {embed: MessageEmbedClass}

Message Class

Class Functions

.author(name, iconUrl)

PARAMETER TYPE OPTIONAL
name string
iconUrl string ๐Ÿ—ธ

.title(name)

PARAMETER TYPE OPTIONAL
name string

.field(name, value, inline)

PARAMETER TYPE OPTIONAL
name string
value string
inline boolean ๐Ÿ—ธ

.description(text)

PARAMETER TYPE OPTIONAL
text string

.color(hexColor)

PARAMETER TYPE OPTIONAL
hexColor string

.time(timestamp)

PARAMETER TYPE OPTIONAL
timestamp Date, number, null ๐Ÿ—ธ

.thumbnail(imageLink)

PARAMETER TYPE OPTIONAL
imageLink string

.image(imageLink)

PARAMETER TYPE OPTIONAL
imageLink string

.footer(name, iconUrl)

PARAMETER TYPE OPTIONAL
name string
iconUrl string ๐Ÿ—ธ

.send(channel)

PARAMETER TYPE OPTIONAL
channel GuildChannel ๐Ÿ—ธ

Join to us!