1.0.1 • Published 7 years ago

discord-webhoox v1.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

discord-webhoox

A discord webhooks lib that actually works? sigh

Usage

Install:

npm install discord-webhoox

Init:

const Webhook = require("discord-webhoox")

let Hook = new Webhook("Your Webhook Url")

Send:

Hook.info("Title","Text")
Hook.error("Title","Text")
Hook.success("Title","Text")
Hook.custom("Color", "Title","Text")

Promise:

Hook.info("Title","Text")
  .then(() => { console.log('it worked!'); })
  .catch(error => { console.log(error) });