A Discord webhook is an API interface, this code sends an HTTP request to this webhook with a message payload in a specific JSON form. This payload will be interpreted by discord and shows it in Embedded form as a message in the channel.
Usage
- Goto your discord server settings
- Goto Integrations tab
- Click Webhooks
- Make a new webhook and copy its URL
- Give that URL as a string in the example_calling() function
- Run the script using
python discord_embedded_message/message.py