crates.io version crates.io downloads

Yet Another Discord Webhook

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 cargo add yadwh or add the following line to your dependencies section in Cargo.toml:

toml [dependencies] yadwh = { git = "https://github.com/ohkthx/yadwh-rs" }

Features

Documentation

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.

Covered API requests

Client: use yadwh::webhook::WebhookAPI or use yadwh::WebhookAPI, create with WebhookAPI::new()

Webhook API: - Get Webhook: WebhookAPI.get - Modify Webhook: WebhookAPI.modify - Delete Webhook: WebhookAPI.delete - MessageAPI: WebhookAPI.message - Create Message: WebhookAPI.message.create - Get Message: WebhookAPI.message.get - Edit Message: WebhookAPI.message.edit - Delete Message: WebhookAPI.message.delete

TODO

Examples

Check above in the Covered API requests section for possibly covered examples. NOTE FOR BELOW: AAAABBBB is the Webhook ID, 11112222 is the Webhook Token, and CCCCDDDD is the Message ID for some requests.

WebhookAPI

MessageAPI

Tips Appreciated!

Wallet addresses are provided below. Ethereum (ETH): 0x7d75f6a9c021fcc70691fec73368198823fb0f60 Bitcoin (BTC): bc1q75w3cgutug8qdxw3jlmqnkjlv9alt3jr7ftha0 Binance (BNB): 0x7d75f6a9c021fcc70691fec73368198823fb0f60