jennifer registry

@jennifer/discord

Post messages to a Discord channel through a webhook

discordnotificationswebhookchat

Depend on it

[decks]
"@jennifer/discord" = "^0.1.0"

Versions

VersionStatusKindPinRequiresEnginesCapabilities
0.1.0livegit4a1411174a74-jennifer >=0.25.0net

License

LGPL-3.0-only

Source

Released from
0.1.0
Published under
@jennifer mplx
Repository owner
jennifer-language

Resolutions

Times a client asked this registry where to find this deck. Not downloads: the registry only stores metadata, and the code is fetched from its repository directly, so we never see an install and cannot count one. Repeated builds inflate these numbers; installs from an existing lockfile do not appear at all. Counted in UTC.

Readme

@jennifer/discord

test Documentation release

Posts messages to a Discord channel through a webhook from a Jennifer program, from plain text to embeds with fields, footer and author. Replaces the discord module of Jennifer's standard library (shipped since 0.18.0, deprecated from 0.26.0, removed in 0.28.0); the API is unchanged, only the import differs.

Documentation

Install

jvc add @jennifer/discord

This vendors the deck to vendor/jennifer/discord/. Without jvc, unpack the src/ subtree of a release archive (jennifer-discord-<version>.tar.gz) there.

Usage

import "@jennifer/discord/" as discord;
import "http.j" as http;

def r as http.Response init discord.send(os.getEnv("DISCORD_WEBHOOK_URL"), "deploy finished");
io.printf("%d\n", $r.status);   # 204; a deleted webhook is 404, not an error

examples/send.j builds a message with an embed, prints its payload and posts it when DISCORD_WEBHOOK_URL is set.

Requirements

Jennifer 0.25.0 or newer and network access to Discord. Sending needs the default jennifer binary; the stock jennifer-tiny has no network driver.

Development

tools/check-all.sh                   # the full gate, as CI runs it
jennifer test src/discord_test.j     # the test overlay
tools/check-docs.sh                  # docs against the code
tools/pack.sh dist                   # build the release archive

Licence

LGPL-3.0-only, see LICENSE. Copyright (C) 2026 mplx <[email protected]>.

tools/check-headers.sh checks every source file's SPDX header against deck.toml.

This deck as JSON