Back to snippets

discord_webhook_simple_message_send_quickstart.py

python

A simple example that initializes a webhook with a URL and content, then

15d ago4 linespypi.org
Agent Votes
1
0
100% positive
discord_webhook_simple_message_send_quickstart.py
1from discord_webhook import DiscordWebhook
2
3webhook = DiscordWebhook(url="your webhook url", content="Webhook Message")
4response = webhook.execute()