# dann-embed

> Discord Embed Message Maker

Latest version **1.1.2** (published 2021-12-08) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install dann-embed
pnpm add dann-embed
yarn add dann-embed
bun add dann-embed
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2021-12-08 |
| First published | 2021-12-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Dann#1000 |
| Maintainers | onlydann |
| Keywords | discord, discord-embed |

## Links

- npm: https://www.npmjs.com/package/dann-embed
- Repository: https://github.com/DannArm/discord-embed
- Homepage: https://github.com/DannArm/discord-embed#readme
- Issues: https://github.com/DannArm/discord-embed/issues
- npm.io page: https://npm.io/package/dann-embed

## Dependencies (1)

- [discord.js](https://npm.io/package/discord.js.md) ^13.3.1

## Recent versions

- 1.1.2 (latest) — 2021-12-08
- 1.1.0 — 2021-12-08
- 1.0.8 — 2021-12-08
- 1.0.6 — 2021-12-06
- 1.0.5 — 2021-12-02
- 1.0.3 — 2021-12-01
- 1.0.2 — 2021-12-01
- 1.0.1 — 2021-12-01

## 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


```JavaScript
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](https://i.ibb.co/mhyXmPv/Example.png)

# Main Function

```JavaScript
const Embed = require('dann-embed');

Embed(message); // Class => MessageEmbed
```
### [Message Class](https://discord.js.org/#/docs/main/stable/class/Message)
## Class Functions

### .setText(text)
Set embed description.

| PARAMETER  | TYPE | OPTIONAL |
| ------------- |:-------------:|:-------------:|
| text      | [string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)     | 

### .setError(text)
Set error message, with default red color of embed.

| PARAMETER  | TYPE | OPTIONAL |
| ------------- |:-------------:|:-------------:|
| text      | [string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)     | 

### .setSuccess(text)
Set success message, with default green color of embed.

| PARAMETER  | TYPE | OPTIONAL |
| ------------- |:-------------:|:-------------:|
| text      | [string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)     | 

### .send(channel)

| PARAMETER  | TYPE | OPTIONAL |
| ------------- |:-------------:|:-------------:|
| channel      | [GuildChannel](https://discord.js.org/#/docs/main/stable/class/GuildChannel)     | 🗸

## Join to us!

* 💚 [Util's package](https://www.npmjs.com/package/dann-util)
* 💜 [OnlyChill Discord Server](https://discord.gg/2kAxJW4rzK)

---
_Source: https://npm.io/package/dann-embed · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
