@ryanforever/discord-webhook

2.1.1 • Public • Published

discord-webhook

send messages via discord webhooks

usage

const DiscordHook = require("@ryanforever/discord-webhook");
let hook = new DiscordHook({
	name: "webhook test",
	url: https://discord.com/api/webhooks/...,
	avatar: "https://media.tenor.com/images/1c4edacf0c4f3057c26f5fa130822970/tenor.png"
})


hook.send("hello world")
// send message from default webhook name
hook.send("hello world", {
	name: "new webhook name", 
	avatar: "http://www.overrideavatar.com/image.jpg"
})
// enter a string as the second argument to override the default name

Readme

Keywords

Package Sidebar

Install

npm i @ryanforever/discord-webhook

Weekly Downloads

11

Version

2.1.1

License

ISC

Unpacked Size

5.88 kB

Total Files

7

Last publish

Collaborators

  • ryanforever