A lightweight Python client to post messages to a Discord webhook.
For information on creating Discord webhooks, see Discord's documentation here.
- Simple and lightweight
- Supports optional error logging and exception raising
- Custom exception class for better error handling
- Built-in request timeout (10 seconds)
pip install discord-posterfrom discord_poster import DiscordPoster
dp = DiscordPoster(webhook_url="my-webhook-url")
dp.post_to_discord(message="Hello from Discord Poster 😎")