Crates.io | yadwh |
lib.rs | yadwh |
version | 0.1.4 |
source | src |
created_at | 2023-07-22 06:10:50.060062 |
updated_at | 2024-01-19 05:11:43.010552 |
description | Yet Another Discord Webhook Crate |
homepage | https://github.com/Ohkthx/yadwh-rs |
repository | https://github.com/Ohkthx/yadwh-rs |
max_upload_size | |
id | 923035 |
size | 84,691 |
The objective of this crate is to grant asynchronous access to the Discord Webhook API. Beyond managing webhooks, this crate also allows for users to edit, obtain, and delete existing messages created by the webhook. There are several other crates that exist with similar functionality, however, I felt they were with missing features or not updated. Contributions are encouraged! The API reference can be seen at Discord Webhook API. If you wish to add this to your project, either use Most of the documentation can be accessed by clicking the following link: docs.rs. That documentation is automatically generated and also accessible from crates.io. Client: Webhook API: Check above in the Covered API requests section for possibly covered examples. NOTE FOR BELOW: Wallet addresses are provided below.Yet Another Discord Webhook
cargo add yadwh
or add the following line to your dependencies section in Cargo.toml:[dependencies]
yadwh = { git = "https://github.com/ohkthx/yadwh-rs" }
Features
Documentation
Covered API requests
use yadwh::webhook::WebhookAPI
or use yadwh::WebhookAPI
, create with WebhookAPI::new()
WebhookAPI.get
WebhookAPI.modify
WebhookAPI.delete
WebhookAPI.message
WebhookAPI.message.create
WebhookAPI.message.get
WebhookAPI.message.edit
WebhookAPI.message.delete
TODO
Examples
AAAABBBB
is the Webhook ID, 11112222
is the Webhook Token, and CCCCDDDD
is the Message ID for some requests.WebhookAPI
cargo run --example get_webhook --features examples -- AAAABBBB 11112222 CCCCDDDD
cargo run --example modify_webhook --features examples -- AAAABBBB 11112222 CCCCDDDD
cargo run --example delete_webhook --features examples -- AAAABBBB 11112222 CCCCDDDD
MessageAPI
cargo run --example create_message --features examples -- AAAABBBB 11112222
cargo run --example create_thread_message --features examples -- AAAABBBB 11112222 CCCCDDDD
cargo run --example get_message --features examples -- AAAABBBB 11112222 CCCCDDDD
cargo run --example edit_message --features examples -- AAAABBBB 11112222 CCCCDDDD
cargo run --example delete_message --features examples -- AAAABBBB 11112222 CCCCDDDD
Tips Appreciated!
Ethereum (ETH): 0x7d75f6a9c021fcc70691fec73368198823fb0f60
Bitcoin (BTC): bc1q75w3cgutug8qdxw3jlmqnkjlv9alt3jr7ftha0
Binance (BNB): 0x7d75f6a9c021fcc70691fec73368198823fb0f60