discord_webhook

Package VersionHex DocsLicense: MITGitHub Repo

A simple Gleam library for sending Discord webhook.

discord_webhook makes it easy to send messages and embeds to Discord from Gleam projects.


Installation

Add the package:

gleam add discord_webhook

Import it:

import discord_webhook

Quick Example

import discord_webhook
pub fn main() {
let webhook = discord_webhook.new("YOUR_WEBHOOK_URL")
discord_webhook.send(webhook, "Hello from Gleam!")
}

Features

FeatureStatus
Plain text messages✅ Done
Embeds🔨
Rich embeds🔨
Name & avatar override🔨
Allowed mentions🔨
File attachments🔨
Rate limiting🔨
Detailed errors📆

✅ - Done
🔨 - In Progress
📆 - Planned
❌ - Not Planned

Roadmap

v0.1.0

v0.2.0

v1.0.0

Have a feature request or suggestion? Open an issue on GitHub.


Contributing

Contributions are welcome!

  1. Fork the repository

  2. Clone your fork:

git clone https://github.com/YOUR_USERNAME/discord_webhook.git
cd discord_webhook
  1. Install dependencies:
gleam deps download
  1. Create a branch:
git checkout -b my-feature
  1. Make your changes and add tests if needed.

  2. Run tests:

gleam test
  1. Push and open a pull request.

License

This project is licensed under the MIT License.

See the LICENSE file for details.



Contact

If you have questions, suggestions, or need help:


Built with Gleam by DJ KAIF.