#webhook #discord

discord-webhooks

This is a simple library for interacting with Discord's webhooks

1 unstable release

0.1.0 Mar 11, 2021

#80 in #webhook

24 downloads per month

MIT license

6KB
114 lines

Discord Webhooks

This is a simple library for interacting with Discord's webhooks.

Examples

use discord-webhooks::Webhook;
fn execute() {
    let hook = Webhook::new(id, token);
    Webhook::execute_webhook(hook, "{content: 'hi', embeds: [], tts = false }").unwrap();
}
fn delete() {
    Webhook::delete_Webhook(hook).unwrap();
}
fn get() {
    Webhook::get_webhook(hook).unwrap();
}
fn edit_message() {
    Webhook::edit_message(hook, body, message_id)
}

Dependencies

~4–16MB
~247K SLoC