diswh

Crates.iodiswh
lib.rsdiswh
version1.0.0
created_at2024-01-09 06:24:47.25504+00
updated_at2025-06-16 19:40:39.400331+00
descriptionA simple way to send webhook messages, or edit for discord. Fully featured with builders to make things easy!
homepage
repositoryhttps://github.com/HellFireNeko/diswh
max_upload_size
id1093373
size68,102
Neko The Catgirl (NekoTheCatgirl)

documentation

README

Diswh

A webhook api for Discord, built in rust. Async can be enabled using the async feature. Then you must use one of the many async dispatchers like tokio or async-std!

How to use:

use diswh::{MessageBuilder, WebhookBuilder};

fn main() -> Result<(), std::error::Error> {
    WebhookBuilder::new("url")
        .send_message(
            MessageBuilder::new("Hello webhook!", false).build()
        )?;
}

Or for Async use:

use diswh::{MessageBuilder, WebhookBuilder};

async fn main() -> Result<(), std::error::Error> {
    WebhookBuilder::new("url")
        .send_message_async(
            MessageBuilder::new("Hello webhook!", false).build()
        ).await?;
}
Commit count: 13

cargo fmt