> For the complete documentation index, see [llms.txt](https://discordlib.js.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://discordlib.js.org/0.5.3/interacting-with-discord.lib-client/discord.md).

# Discord

A powerful discord bot making library to help you make discord bots. Super easy, 100 percent discord api coverage, and more! Discord.lib also allows you to interact with discord.js.

You could use this to do things like creating a rich embed.&#x20;

## Examples

### Example of making a rich embed

{% hint style="info" %}
You could view all of the embed variable[ here](https://discord.js.org/#/docs/main/stable/class/RichEmbed?scrollTo=addBlankField)(It is the same as the library [discord.js](https://npmjs.com/package/discord.js))
{% endhint %}

```javascript
const dl = require("discord.lib")
const embed = new dl.Discord.RichEmbed();
embed.setTitle("help")
embed.addField("A_ban", "Ban a member")
```

### Example of sending webhook message

```javascript
const dl = require("discord.lib")
// Create a new webhook
const hook = new dl.Discord.WebhookClient('webhook id', 'webhook token');

// Send a message using the webhook
hook.send('I am now alive!');
```
