NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #5611 most downloaded on PyPI
Easily send Discord webhooks with Python
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 3 weeks to 13 months
Nearly every release is documented
notes for 30 of 30 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
30 releases · first in 2018
do not pin requests version to 2.32.0
set_timestamp() accepts also a string
set_timestamp() accepts also a stringflagsthread_idOne column per quarter.
fix typing for allowed_mentions
set thread_id or thread_name as kwargs in AsyncDiscordWebhook and DiscordWebhook
thread_id or thread_name as kwargs in AsyncDiscordWebhook and DiscordWebhooktimeout keyword has accidentally set tts as well
timeout keyword has accidentally set tts as wellset_timestamp() accepts also a datetime object
set_timestamp() accepts also a datetime object
removed remove_files as an optional parameter in .execute(). .files are automatically cleared so that the files aren't uploaded twice when editing a w
remove_files as an optional parameter in .execute().
.files are automatically cleared so that the files aren't uploaded twice when editing a webhook.execute() stores the webhook ID in the .id property
execute() stores the webhook ID in the .id propertyDiscordWebhook.create_batch() creates multiple instancesDiscordWebhook and AsyncDiscordWebhook
url parameter only excepts one url as stredit() excepts no parametersdelete() excepts no parametersDiscordEmbed
del_embed_field() to delete_embed_field()ColourNotInRangeException was renamed to ColorNotInRangeException
ColourNotInRangeException was renamed to ColorNotInRangeExceptiononly check if color is in range if color was set
fix support for using a list of webhook URLs
fix hex to int color conversion
## 2022-05-06 0.16.0 ### Features - add async support
enable rate_limit_retry in webhook edit() function
rate_limit_retry in webhook edit() functionedit function to specify fields that will be added or override existing fields in the webhook edit request. e.g. attachmentsadd optional rate_limit_retry to webhook. The webhook will automatically be sent once the rate limit has been lifted
rate_limit_retry to webhook.
The webhook will automatically be sent once the rate limit has been lifted### Features - add timeout param to webhooks
timeout param to webhooksconvert embed color to decimal if it's given as hex
remove_embeds(), remove_files() functions in order to clear embeds and files properties of webhook objectremove_embeds and remove_files args to execute() in order to automatically clear embeds and files propertiesremove_file() function in order to remove a file in files given by filenamewebhook responses are always returned as a list
edit() and delete() methods are now supporting multiple webhooks.execute() has been calledadd edit() and delete() methods to DiscordWebhook class
edit() and delete() methods to DiscordWebhook classadd allowed_mentions property to webhooks. see Discord Docs
allowed_mentions property to webhooks. see Discord Docs- add set_content() function
set_content() functionfixed an issue where the default timestamp was not updated
add an entry point for a minimal cli
send webhook to multiple urls if urls are provided as list
list.execute() now returns the webhook response
.execute() now returns the webhook responseconvert DiscordEmbed to dict because DiscordEmbed is not JSON serializable
DiscordEmbed to dict because DiscordEmbed is not JSON serializableimport from package instead of sumbodule
If you have to use a proxy, you can now add your proxies with the proxies parameter
If you have to use a proxy, you can now add your proxies with the proxies parameter
from discord_webhook.webhook import DiscordWebhook
proxies = {
'http': 'http://10.10.1.10:3128',
'https': 'http://10.10.1.10:1080',
}
DiscordWebhook(url="webhook URL", proxies=proxies)
or with the set_proxies() function
from discord_webhook.webhook import DiscordWebhook
proxies = {
'http': 'http://10.10.1.10:3128',
'https': 'http://10.10.1.10:1080',
}
webhook = DiscordWebhook(url="webhook URL")
webhook.set_proxies(proxies)
### 🎉 Features - send webhook with files
send webhook with embedded content
Your coding agent can read these notes before it upgrades. Set up the MCP server →