Crates.io | discord-webhooks |
lib.rs | discord-webhooks |
version | 0.1.0 |
source | src |
created_at | 2021-03-11 23:55:33.865773 |
updated_at | 2021-03-11 23:55:33.865773 |
description | This is a simple library for interacting with Discord's webhooks |
homepage | https://github.com/twotxh/discord-webhooks/ |
repository | https://github.com/twotxh/discord-webhooks/ |
max_upload_size | |
id | 367482 |
size | 6,835 |
This is a simple library for interacting with Discord's webhooks.
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)
}