# djshook

> Easily create Discord Webhooks & create fallbacks using Discord.js

Latest version **1.4.2** (published 2021-05-13) · MIT license · 0 weekly downloads

## Install

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

## 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.4.2 |
| Published | 2021-05-13 |
| First published | 2021-05-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | vitro |
| Maintainers | dani_development |
| Keywords | hook, discord.js, webhooks |

## Links

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

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.4.2 (latest) — 2021-05-13

## README

D(iscord)Hook
========

### Discord de Soporte: [https://discord.gg/sTPet847SE](https://discord.gg/sTPet847SE)

---

Este NPM crea una manera sencilla e innovadora de enviar Webhooks, *además de contrar con alterenativas en cas de que el cliente no tenga los permisos requeridos*.

*Si el cliente no tiene los permisos `MANAGE_WEEBHOOKS`, enviara el weebhook como un mensaje convencional, prara así no causar problemas de permisos*.

---

## Documentación
Parametro | Tipo | Opcional | Defecto | Descripción
--- | --- | --- | --- | ---
channel | `textChannel` | false | *none* | El canal al que enviar el webhook.
message | `string` **or** `embed` | false | *none* | El mensaje o embed a enviar.
options | `object` | true | *none* | Las opciones para el webhook.
options.name | `string` | true | Server Invite | El título del webhook.
options.icon | `iconURL` | true | *Webhook Icon* | El icono del webhook.

---

## Examples

*Ejemplo con un mensaje convencional*
```js
const hook = require("djshook");

hook(message.channel, "¡Hola!", {
    name: "dhook"
})
```

*Ejemplo con un embed*
```js
const hook = require("djshook");

let embed = new Discord.MessageEmbed()
    .setColor("GREEN")
    .setTitle("dhook")
    .setDescription("By ᴠɪᴛʀᴏ#7988")

hook(message.channel, embed, {
    name: "DHook"
})
```

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