Expand description
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:
Re-exports
pub use crate::webhook::WebhookApi;
Modules
- Embed Object that is optionally sent in messages.
- Contains
MessageAPI
, which is used to create, get, edit, and delete messages. - WebhookApi Client for interacting directly with the Discord API.
Structs
- Collection of Limits enforced by the Discord API.
Enums
- Enum for handling the expected errors for processing webhook messages.
Type Aliases
- Used to return either objects or errors.