xiyuhook
Version:
Simple Auto-Webhook for discord.js
51 lines (39 loc) • 1.07 kB
Markdown
# xiyuHook
- Simple Auto-Webhook for discord.js
- Faster & Easier usage.
**Update 0.0.2**
- Fixed bugs for the module!
- Improved the performance for module!
- Fixed [XIYU_INVALID_WEBHOOK] errors!
- Fixed [XIYU_INVALID_ICONURL] errors!
# Setup & Installation
```js
const webhook = require("xiyuhook");
```
```js
npm i xiyuhook@latest
// Please install the latest version of the module!
```
# Example
```js
// The normal usage for xiyuhook:
const hook = require('xiyuhook')
hook(message.channel, 'Webhook', {
name: 'Webhook Name',
icon: 'Webhook Icon'
})
// Embed usage for xiyuhook:
const hook = require('xiyuhook')
const embed = new Discord.MessageEmbed()
.setAuthor('Embed Author')
.setFooter('Embed Footer')
hook(message.channel, embed, {
name: 'Webhook Name',
icon: 'Webhook Icon'
```
# Contact
[Discord Server](https://discord.gg/Ysj2XRAmGm) | [Discord User](https://discord.com/users/846046679328227358) | [Twitter Profile](https://twitter.com/karincadev)
# License
```
MIT © karincaDev
```