Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

gideonbot/discord-webhooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discord-webhooks

A npm module for sending discord webhooks

Installation

npm i gideonbot/discord-webhooks (requires git)

Usage

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

API

.send(content, options)

desc here

.get()

Obtains info about the webhook

Feature list

  • Follows rate limits

Bug/Todo list

none (afaik)

About

Module for sending Discord webhooks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published