- add
allowed_mentionsproperty to webhooks. see Discord Docs
- add
set_content()function
- fixed 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
.execute()now returns the webhook response
- convert
DiscordEmbedtodictbecauseDiscordEmbedis not JSON serializable
- import from package instead of submodule
- send files and message/embed simultaneously
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)- send webhook with files
- send basic webhook
- send webhook with embedded content