New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

discord-alert

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-alert

Send message / notification to your discord server

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

Discord Alert

A lightweight package to send message/notification with http request to discord server

Install

$ npm install discord-alert

or

$ yarn add discord-alert

Usage

import Notification from "discord-alert";

Notification("discord webhook url", "message");

Parameters

url your discord server webhook url
message what message you want to send each time a certain event is being triggered.

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.

Author

  • melvnl

Keywords

javascript

FAQs

Package last updated on 15 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts