Clyde
A modern, type-hinted Python library for seamless interaction with the Discord Webhook API.
Install / Use
/learn @EthanC/ClydeREADME

Clyde is a modern, type-hinted Python library for seamless interaction with the Discord Webhook API.
It's lightweight, developer-friendly, and supports advanced features like Components and Embeds.
Features
- Fully type-hinted for an excellent developer experience
- Input validation powered by msgspec
- Support for all Webhook-compatible Components
- Granular customization of rich Embeds
- Helpers for Discord-flavored markdown, including timestamps
- Compatible with both synchronous and asynchronous HTTP requests
- Seamless automatic retries when encountering Discord rate limits
- Beautiful generated documentation built with Zensical
Getting Started
Installation
[!IMPORTANT] Clyde requires Python 3.11 or later.
Install with uv (recommended):
uv add discord-clyde
Alternatively, install with pip:
pip install discord-clyde
Examples
[!TIP] Take the examples below and copy/paste them into your project to get started in seconds.
Send a standard Message
from clyde import Webhook
relay: Webhook = Webhook(url="https://discord.com/api/webhooks/00000/XXXXXXXXXX")
relay.set_avatar_url("https://i.imgur.com/RzkhQgZ.png")
relay.set_username("Heisenberg")
relay.set_content("[Clyde](https://github.com/EthanC/Clyde) says hi!")
relay.execute()

Send a Message with Components
from clyde import Webhook
from clyde.components import ActionRow, LinkButton, TextDisplay
relay: Webhook = Webhook(url="https://discord.com/api/webhooks/00000/XXXXXXXXXX")
relay.set_avatar_url("https://i.imgur.com/BpcKmVO.png")
relay.set_username("TARS")
greeting: TextDisplay = TextDisplay(content="[Clyde](https://github.com/EthanC/Clyde) says hi!")
actions: ActionRow = ActionRow()
repository: LinkButton = LinkButton()
repository.set_label("Try Clyde")
repository.set_url("https://github.com/EthanC/Clyde")
actions.add_component(repository)
relay.add_component(greeting)
relay.add_component(actions)
relay.execute()

Send a Message with an Embed
from clyde import Embed, Webhook
relay: Webhook = Webhook(url="https://discord.com/api/webhooks/00000/XXXXXXXXXX")
relay.set_avatar_url("https://i.imgur.com/QaTHttz.png")
relay.set_username("Shady")
rich: Embed = Embed()
rich.set_description("[Clyde](https://github.com/EthanC/Clyde) says hi!")
rich.set_color("#5865F2")
relay.add_embed(rich)
relay.execute()

Releases
Clyde loosely follows Semantic Versioning for consistent, predictable releases.
Contributing
Contributions are welcome - whether it’s fixing bugs or adding new features.
- See
CONTRIBUTING.mdfor guidelines. - See Issues for known bugs and feature requests.
Acknowledgments
The Clyde character and Discord brand assets are owned by Discord.
This project is not affiliated with or endorsed by Discord in any way.
Related Skills
bluebubbles
353.1kUse when you need to send or manage iMessages via BlueBubbles (recommended iMessage integration). Calls go through the generic message tool with channel="bluebubbles".
gh-issues
353.1kFetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5] [--notify-channel -1002381931352]
healthcheck
353.1kHost security hardening and risk-tolerance configuration for OpenClaw deployments
imsg
353.1kiMessage/SMS CLI for listing chats, history, and sending messages via Messages.app.
