@woodydark/netlify-plugin-discord

0.0.9 • Public • Published

netlify-plugin-discord

npm

Notification

Get build notifications in Discord.

Table of Contents

Create a Discord webhook

Edit the channel where you would like the webhook to message:

Edit channel

Click View Webhooks in the Integrations menu:

Integrations

Add the webhook. Copy the Webhook URL for use configuring this build plugin.

Webhook

Installation

yarn add netlify-plugin-discord

Add the plugin to your netlify config.

# netlify.toml

[[plugins]]
  package = "netlify-plugin-discord"

Configuration

Declare the DISCORD_WEBHOOK_URL as a netlify build setting.

# netlify.toml

[build.environment]
  DISCORD_WEBHOOK_URL = "https://discord.com/your-webhook-url"
  DISCORD_NOTIFY_CONTEXT = "production deploy-preview branch-deploy" # or "all". If not set, it defaults to "all"

Or, declare the DISCORD_WEBHOOK_URL and/or DISCORD_NOTIFY_CONTEXT environment variable using the Netlify dashboard.

Happy building!

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.91latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.91
0.0.81
0.0.71
0.0.60
0.0.50
0.0.40
0.0.30

Package Sidebar

Install

npm i @woodydark/netlify-plugin-discord

Weekly Downloads

3

Version

0.0.9

License

MIT

Unpacked Size

6.44 kB

Total Files

8

Last publish

Collaborators

  • woodydark