A npm module for sending discord webhooks
npm i gideonbot/discord-webhooks
(requires git)
const Webhook = require('discord-webhooks');
let webhook = new Webhook('your webhook id', 'your webhook token');
webhook.send('this is a test');
webhook.send(null, {embeds: [{title: 'embed title'}]}).then(sent => console.log(sent.id));
webhook.get().then(data => console.log(data)); //gives you info about the webhook
desc here
Obtains info about the webhook
- Follows rate limits
none (afaik)