1.0.0 • Published 3 years ago
dishook v1.0.0
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 :)