# eris-plugins

> A package that adds some extras to the Eris library that makes some things easier for you

Latest version **1.2.0** (published 2023-10-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install eris-plugins
pnpm add eris-plugins
yarn add eris-plugins
bun add eris-plugins
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2023-10-16 |
| First published | 2023-10-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ZombieX |
| Maintainers | zombiex-dev |
| Keywords | discord, bot, plugin, eris |

## Links

- npm: https://www.npmjs.com/package/eris-plugins
- npm.io page: https://npm.io/package/eris-plugins

## Recent versions

- 1.2.0 (latest) — 2023-10-16
- 1.1.1 — 2023-10-16
- 1.1.0 — 2023-10-15
- 1.0.0 — 2023-10-08

## README

![Eris Plugins](https://www5.0zz0.com/2023/10/15/18/366887094.png)
# Eris Plugins 🧩

**Eris Plugins** is your ultimate companion for supercharging your Discord bot with extra functionality and features, all powered by the Eris library.

## 🚀 Example Usage

Here's an example of how you can quickly integrate Eris Plugins into your Discord bot:

## EmbedBuilder :
```javascript
const { EmbedBuilder } = require("eris-plugins")


client.on("messageCreate", (msg) => {
  if(msg.content === "!embed") {
const e = new EmbedBuilder()
.setAuthor("Author","https://d.top4top.io/p_2837l0bm80.png","https://d.top4top.io/p_2837l0bm80.png")
.setTitle("Thats Title")
.setURL("https://d.top4top.io/p_2837l0bm80.png")
.setDescription("Thats Description")
.setColor(0x0099FF)
.setTimestamp()
 .setImage("https://d.top4top.io/p_2837l0bm80.png")
 .setThumbnail("https://d.top4top.io/p_2837l0bm80.png")
.setFooter("Thats Footer","https://d.top4top.io/p_2837l0bm80.png")
.addField("Field : Name", "value")
 client.createMessage(msg.channel.id,{embed:e});
  }
});
```
## ButtonBuilder :
```javascript
const { ButtonBuilder , ActionRowBuilder } = require("eris-plugins")

client.on("messageCreate", (msg) => {
  if(msg.content === "!button") {
      
const button = new ButtonBuilder()
.setLabel("TEXT")
.setStyle("primary")
/*
@ You can change the style  >>
STRING : "primary" & "secondary" & "success" & "danger" & "link"

NUMBER : 
primary => 1
secondary => 2
success => 3
danger => 4
link => 5
*/
.setCustomId("c_id")
const row = ActionRowBuilder(button)

 client.createMessage(msg.channel.id,{content:"That's Button",components:[row]});
  }
});
```
## StringSelectMenuBuilder :
```javascript
const { StringSelectMenuBuilder , ActionRowBuilder, StringSelectMenuOptionBuilder } = require("eris-plugins")

client.on("messageCreate", (msg) => {
  if(msg.content === "!menu") {
      
const menu = new StringSelectMenuBuilder()
.setCustomId("menu_id")
.setPlaceholder("PLACEHOLDERS")
// .setMaxValues(1) DEFAULT => 1
// .setMinValues(1) DEFAULT => 1
// .setDisabled() [ OPTIONAL]

.AddOptions(
new StringSelectMenuOptionBuilder()
.setLabel("One Option")
.setValue("one_value")
.setDescription("Description")
.setEmoji("ID EMOJI HERE"),

new StringSelectMenuOptionBuilder()
.setLabel("Two Option")
.setValue("two_value")
.setDescription("Description")
.setEmoji("ID EMOJI HERE")
)


const row = ActionRowBuilder(menu)

 client.createMessage(msg.channel.id,{content:"That's Button",components:[row]});
  }
});
```
## UserSelectMenuBuilder :
```javascript
const { UserSelectMenuBuilder , ActionRowBuilder } = require("eris-plugins")

client.on("messageCreate", (msg) => {
  if(msg.content === "!menu") {
      
const menu = new UserSelectMenuBuilder()
.setCustomId("menu_id")
.setPlaceholder("PLACEHOLDERS")
// .setMaxValues(1) DEFAULT => 1
// .setMinValues(1) DEFAULT => 1
// .setDisabled() [ OPTIONAL]

const row = ActionRowBuilder(menu)

 client.createMessage(msg.channel.id,{content:"That's Button",components:[row]});
  }
});
```
## 🌟 Credits

This incredible project is actively maintained by [ZombieX](https://github.com/zombiexdev). Show some love and support!

## 💬 Contact 
[Discord Server](https://dsc.gg/dajla-studio)

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