1.1.0 • Published 2 years ago
discord-alert v1.1.0
Install
$ npm install discord-alert
or
$ yarn add discord-alert
Usage
import Notification from "discord-alert";
Notification("discord webhook url", "message");
Parameters
Example
There are various cases where you can use this package. I'm using it to send a notification each time a user submits a support message for my personal site.
Instead of receiving the notification through email which is quite convoluted (since you need an SMTP server, etc to make it work). I see discord webhook is much simpler and suit my need.