dishook

1.0.0 • Public • Published

DisHook

DisHook is a npm module that can help you send messages from webhooks.

Example Usage

const { Webhook } = require('dishook')
const hook = new Webhook('https://discord.com/api/webhooks/XXXXXXXXXXXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')

hook.send('Ping!')

Sending Embeds

const { Webhook, EmbedBuilder } = require('dishook')
const hook = new Webhook('https://discord.com/api/webhooks/XXXXXXXXXXXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')

const embed = new EmbedBuilder()
embed.setTitle('This is a title')
embed.setDescription('This is a description')
embed.addField('This is a fields name', 'and this is its value')
embed.setFooter('this is a footer!')

hook.send(embed)

Contributors

  • FireyJS#7918

Support

A support server is coming soon :)

Readme

Keywords

Package Sidebar

Install

npm i dishook

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

2.04 kB

Total Files

5

Last publish

Collaborators

  • triscord