discord_webhook
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
| Feature | Status |
|---|---|
| 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
- Basic send method
- Basic embed support
v0.2.0
- Username and avatar override per message
- Permanent webhook username/avatar update
- Per-webhook rate limiting
- Better error types (rate limits, bad requests, etc.)
v1.0.0
- Complete planned features
- Full documentation
- Stable API
Have a feature request or suggestion? Open an issue on GitHub.
Contributing
Contributions are welcome!
-
Clone your fork:
git clone https://github.com/YOUR_USERNAME/discord_webhook.git
cd discord_webhook
- Install dependencies:
gleam deps download
- Create a branch:
git checkout -b my-feature
-
Make your changes and add tests if needed.
-
Run tests:
gleam test
- 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:
- Discord Username:
@dj.kaif - Direct Profile: https://discord.com/users/1237644967422459996
Built with Gleam by DJ KAIF.