discord_webhook

Package Version Hex Docs License: MIT GitHub 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.


Links


Contact

If you have questions, suggestions, or need help:


Built with Gleam by DJ KAIF.

โœจ Search Document