discord-webhooks

Crates.iodiscord-webhooks
lib.rsdiscord-webhooks
version0.1.0
sourcesrc
created_at2021-03-11 23:55:33.865773
updated_at2021-03-11 23:55:33.865773
descriptionThis is a simple library for interacting with Discord's webhooks
homepagehttps://github.com/twotxh/discord-webhooks/
repositoryhttps://github.com/twotxh/discord-webhooks/
max_upload_size
id367482
size6,835
(twotxh)

documentation

README

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)
}
Commit count: 11

cargo fmt