1.1.2 โ€ข Published 2 years ago

dann-embed v1.1.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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).setSuccess("Pong!").send();
  }
});

client.login('token');

Example

Main Function

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

Embed(message); // Class => MessageEmbed

Message Class

Class Functions

.setText(text)

Set embed description.

PARAMETERTYPEOPTIONAL
textstring

.setError(text)

Set error message, with default red color of embed.

PARAMETERTYPEOPTIONAL
textstring

.setSuccess(text)

Set success message, with default green color of embed.

PARAMETERTYPEOPTIONAL
textstring

.send(channel)

PARAMETERTYPEOPTIONAL
channelGuildChannel๐Ÿ—ธ

Join to us!

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago