{"name":"@jennifer/discord","description":"Post messages to a Discord channel through a webhook","versions":{"0.1.0":{"version":"0.1.0","kind":"git","url":"https://github.com/jennifer-language/deck-discord.git","ref":"0.1.0","commit":"4a1411174a74354e25b43027a0f26831d1d50f74","checksum":"","yanked":false,"license":"LGPL-3.0-only","requires":{},"engines":{"jennifer":"\u003e=0.25.0"},"capabilities":["net"],"keywords":["discord","notifications","webhook","chat"],"description":"Post messages to a Discord channel through a webhook","publishedAt":"1793614884","repoId":1442163723,"repoOwnerId":305727207,"repoOwner":"jennifer-language"}},"readme":"# @jennifer/discord\n\n[![test](https://github.com/jennifer-language/deck-discord/actions/workflows/test.yml/badge.svg)](https://github.com/jennifer-language/deck-discord/actions/workflows/test.yml)\n[![Documentation](https://img.shields.io/badge/docs-github%20pages-blue)](https://jennifer-language.github.io/deck-discord/)\n[![release](https://img.shields.io/github/v/release/jennifer-language/deck-discord)](https://github.com/jennifer-language/deck-discord/releases/latest)\n\nPosts messages to a [Discord](https://discord.com) channel through a webhook\nfrom a [Jennifer](https://jennifer-lang.dev/) program, from plain text to\nembeds with fields, footer and author. Replaces the `discord` module of\nJennifer's standard library (shipped since 0.18.0, deprecated from 0.26.0,\nremoved in 0.28.0); the API is unchanged, only the import differs.\n\n**[Documentation](https://jennifer-language.github.io/deck-discord/)**\n\n## Install\n\n```sh\njvc add @jennifer/discord\n```\n\nThis vendors the deck to `vendor/jennifer/discord/`. Without `jvc`, unpack the\n`src/` subtree of a release archive (`jennifer-discord-\u003cversion\u003e.tar.gz`) there.\n\n## Usage\n\n```jennifer\nimport \"@jennifer/discord/\" as discord;\nimport \"http.j\" as http;\n\ndef r as http.Response init discord.send(os.getEnv(\"DISCORD_WEBHOOK_URL\"), \"deploy finished\");\nio.printf(\"%d\\n\", $r.status);   # 204; a deleted webhook is 404, not an error\n```\n\n`examples/send.j` builds a message with an embed, prints its payload and\nposts it when `DISCORD_WEBHOOK_URL` is set.\n\n## Requirements\n\nJennifer 0.25.0 or newer and network access to Discord. Sending needs the\ndefault `jennifer` binary; the stock `jennifer-tiny` has no network driver.\n\n## Development\n\n```sh\ntools/check-all.sh                   # the full gate, as CI runs it\njennifer test src/discord_test.j     # the test overlay\ntools/check-docs.sh                  # docs against the code\ntools/pack.sh dist                   # build the release archive\n```\n\n## Licence\n\nLGPL-3.0-only, see [LICENSE](LICENSE). Copyright (C) 2026 mplx \u0026lt;mplx@jennifer-lang.dev\u0026gt;.\n\n`tools/check-headers.sh` checks every source file's SPDX header against\n`deck.toml`.\n"}