discord-webhookdeprecated

A simple Javascript file for nicely formatting Discord webhooks

Usage no npm install needed!

<script type="module">
  import discordWebhook from 'https://cdn.skypack.dev/discord-webhook';
</script>

README

Discord-Webhooks

A simple Javascript file for nicely formatting Discord webhooks

Usage

It's simple

To initialise:

var Webhook = require("Discord-Webhook")

var Hook = new Webhook("WEBHOOK URL")

To send an info message:

Hook.info("WEBHOOK NAME","Info")

To send an error message:

Hook.error("WEBHOOK NAME","Error")

To send a success message:

Hook.success("WEBHOOK NAME","Yay we did something right")

License

MIT