# webhookmgr

> WebHook-Manager, create y gestiona tu propio webhook

Latest version **1.3.7-1** (published 2021-10-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install webhookmgr
pnpm add webhookmgr
yarn add webhookmgr
bun add webhookmgr
```

## 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.3.7-1 |
| Published | 2021-10-15 |
| First published | 2021-08-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | sepoxcraft48 |

## Links

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

## Dependencies (1)

- [fs](https://npm.io/package/fs.md) 0.0.1-security

## Recent versions

- 1.3.7-1 (latest) — 2021-10-15
- 1.3.7 — 2021-10-15
- 1.3.6-3 — 2021-10-15
- 1.3.6-2 — 2021-10-15
- 1.3.6-1 — 2021-10-15
- 1.3.6 — 2021-10-15
- 1.3.5-2 — 2021-10-10
- 1.3.5-1 — 2021-10-10
- 1.3.4-low — 2021-10-10
- 1.3.4 — 2021-10-10
- 1.3.3 — 2021-10-02
- 1.3.2-v002.testing — 2021-10-02
- 1.3.2-v001.testing — 2021-10-02
- 1.3.2 — 2021-10-02
- 1.3.1 — 2021-10-02
- … 18 more at https://npm.io/package/webhookmgr/versions

## README

<h3><a href="#">WebHook-Manager</a>, create y gestiona tu propio webhook

<li>Instalación: <b>npm i webhookmgr</b>
<li>Ejemplos:



<h3>Ejemplo 1:

```js
let { webhook: wh, sendWebhook: sw } = require("webhookmgr")
/*
message: message
message.author.username: String
message.author.displayAvatarURL(): (opcional) URL
*/
new wh(message, message.author.username, message.author.displayAvatarURL()).then(async webhook => {
  /*
  "Hola": String
  webhook: webhook
  true: Boolean (autodelete webhook)
  */
  await sw(webhook, "Hola", true)
})
```
<h3>Ejemplo 2

```js
let whmgr = require("webhookmgr")
/*
message: message
message.author.username: String
message.author.displayAvatarURL(): (opcional) URL
*/
new whmgr.webhook(message, message.author.username, message.author.displayAvatarURL()).then(async webhook => {
  /*
  "Hola": string
  webhook: webhook
  false: Boolean (autodelete webhook)
  */
  await whmgr.sendWebhook(webhook, "Hola", false)
})
```

<li>Clases:

<h3>webhook(message, username, avatar)

```js
/*
message: message
username: String
avatar: URL
*/
new webhook(message, username, avatar)
```

<h3>sendWebhook(webhook, message, true)

```js
/*
webhook: Webhook
message: MessageToSay<String>
true: AutoDelete<Boolean>
*/
await sendWebhook(webhook, message, true)
```

<h3>fetchWebhookBy()

```js
// Via ID
/*
guild: Guild
id: WebhookID<Integer>
*/
await fetchWebhookBy(guild, {id: id})

// Via Name
/*
guild: Guild
name: WebhookName<String>
*/
await fetchWebhookBy(guild, {name: name})

// Via URL
/*
guild: Guild
url: WebhookURL<Link>
*/
await fetchWebhookBy(guild, {url: url})

// Via token
/*
guild: Guild
token: WebhookToken
*/
await fetchWebhookBy(guild, {token: token})
```

<li>Discord: 

```js
require("webhookmgr").discord
```

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