1 unstable release
0.1.0 | Mar 11, 2021 |
---|
#36 in #dealing
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
~218K SLoC